Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author SubZtep

    (@subztep)

    I think it is a problem with your template. It uses WordPress’s css/js embed functions, should work…

    Thread Starter kranzoky

    (@kranzoky)

    Could the reason the CSS/JS files are not loading for the plugin be because I am just loading jQuery using the line below (without using the wp_enqueue_script method and registering it with WordPress):

    <script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js”></script&gt;

    So the plugin is not aware that jQuery is present?

    Thanks.

    Plugin Author SubZtep

    (@subztep)

    It shouldn’t be problem, the worst case is you include jquery twice.

    Be sure you add

    <?php wp_head(); ?>

    to the template header for include the css file, and add

    <?php wp_footer(); ?>

    to the template footer for include the js file.

    Thread Starter kranzoky

    (@kranzoky)

    Okay, it looks like the theme did not have <?php wp_head(); ?> in the header. So that would account for the CSS file not loading. However, the theme does have <?php wp_footer(); ?> in the footer… so why would it not include the js file?

    Plugin Author SubZtep

    (@subztep)

    Js not included because the template doesn’t include jQuery on the proper way so the plugin think jQuery doesn’t exists.

    I just removed jQuery check from the plugin (download new version 1.10.1), it’s useless anyway. I hope it works now.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘CSS and Javascripts not loading’ is closed to new replies.