• Resolved yanngarcia

    (@yanngarcia)


    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.

    • This topic was modified 4 years, 3 months ago by yanngarcia. Reason: styling
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support tomwolf

    (@tomwolfhun)

    Hello @yanngarcia ,

    Next week’s update will solve this problem. Please give us some days and thank you for your efforts.

    We will write here if it is done.
    Thank you again,
    Tom
    Trustindex

    Plugin Support Adam from Trustindex

    (@adam140299)

    Hello @yanngarcia!

    We have solved the problem, you can check it by upgrading your plugin to the newest version of it.

    Thank you for your patience!

    Feel free to write to us, if you need further assistance,
    Adam
    Trustindex

    Thread Starter yanngarcia

    (@yanngarcia)

    Hello Adam,

    It’s working with this new version 7.11.

    Thank you!

    Plugin Support Adam from Trustindex

    (@adam140299)

    We are glad to hear this.

    Thank you for your reply!

    Best regards,
    Adam
    Trustindex

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Multisite – Error on loading CSS’ is closed to new replies.