Multisite – Error on loading CSS
-
Version 7.9.1
Hello,
On a multisite, the widget css file can’t be loaded (back and front)
The errors are in file wp-reviews-plugin-for-google.php, lines 44 & 48:
wp_register_style('ti-widget-css-google', content_url() .'/uploads/'. $trustindex_pm_google->getCssFile(true), [], null);The returned url is domain-name.com/subsite/wp-content/uploads/trustindex-google-widget.css.
This doesn’t work as the css file is generated here domainname.com/subsite/wp-content/uploads/sites/[ID-SUBSITE]/trustindex-google-widget.css.I temporarily fixed this by changing lines 44 & 48 by
wp_register_style('ti-widget-css-google', wp_upload_dir()['baseurl'] . '/' . $trustindex_pm_google->getCssFile(true), [], null);It could be nice to fix that on a next update.
NB: exact same problem on the tripadvisor reviews widget.
The topic ‘Multisite – Error on loading CSS’ is closed to new replies.