Support » Plugin: WP Customer Reviews » WPCR JS and CSS files are Inactive

  • Resolved piranimg

    (@piranimg)


    I’ve uploaded this plugin to the Plugins Folder within our Multisite setup. However, after activating it (tried it both ways – network activate and activating it via individual sites), the CSS and JS for this plugin fail to load (They don’t show up any where in the source code at all). The page with the issue can be seen at http://baytreeweb.com/client-testimonials/

    I tried to manually load the CSS and JS files, which makes it appear as though its working, but when I click on the Submit a new Testimonial/review button, nothing seems to happen. Can anyone help?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Aaron Queen

    (@bompus)

    Please update to 2.3.4 and try this again. We have restructured how the CSS and JS load, so hopefully this is fixed now for those themes that had issues before.

    Thread Starter piranimg

    (@piranimg)

    Thanks for the reply bompus… but it’s still not loading (running 2.3.6) … please see at http://baytreeweb.com/testimonials

    For some reason it’s refusing to load the CSS and JS… when I load it manually, nothing works.

    Not sure if this makes a difference, but after I activate the plugin, I am redirected to a 404 error page…

    Plugin Author Aaron Queen

    (@bompus)

    It appears that the theme is unique in that it does not support WordPress standards for adding CSS or JS files at all. I would probably say that most plugins that would try to do this would end up failing as well, since they all have to use WP hooks to achieve this. Adding the CSS and JS should work as long as the CSS is the last loaded in the head and the JS is the last loaded in the head (after jQuery).

    Even with manually loading them, there may be another part of the plugin that may try to load things into the head for redirection, but I think that is gone.. I’m pretty sure that adding them manually should work, just make sure that the WPCR JS is loaded after jQuery.

    However, you said that when you activate it, you get redirected to a 404 page. What is the URL of this page when you see the 404 error? That could actually be an issue with the blog setup or a setting inside of WP.

    Strangely enough, I haven’t seen any other reports of a 404 when activated, so that is why I am curious.

    Let me know 🙂

    Thread Starter piranimg

    (@piranimg)

    Bompus… you solved it! We were missing the wp_head() and wp_footer() hooks… we added those and everything seems to be working great!

    Hi again!

    My WPCR JS and CSS files are also inactive i use Theme Sufission.

    How do i add those hooks u are talking about manually?

    Best Regards
    Anders

    Plugin Author Aaron Queen

    (@bompus)

    In your theme files, header.php , you need to add <?php wp_head(); ?> to the file on the line right before </head>

    In footer.php , you need to add <?php wp_footer(): ?> to the file on the line right before </body>

    This should fix the problem with any theme that does not use the proper WP hooks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WPCR JS and CSS files are Inactive’ is closed to new replies.