Error in CSS of Wordpress plugins

Asked

Viewed 461 times

1

I am with the following problem, my theme in Wordpress does not recognize the CSS of plugins installed in the internal pages, on home works normally, but on other pages, no plugin I install recognizes CSS.

Someone can help us?

  • 1

    You have <?php wp_head(); ?> in your file header.php ?

  • Our was just that, it was missing. Thank you already solved my Zuul problem. Abs!

1 answer

3

Probably your problem will be the lack of function wp_head() in your file header.php or index.php which is usually used with hook to load styles, scripts and meta tags:

<?php 
 ...
    /* Aplicar sempre a função wp_head() imediatamente antes da tag de fecho </head>
     * no teu tema, ou vai-se quebrar muitos plugins, que geralmente usam este gancho 
     * para adicionar elementos na <head>, tais como estilos, scripts e meta tags.
     */
    wp_head();
 ?>
 </head>

Note:

In some cases, the problem also lies in the absence of the function wp_footer() in the file footer.php or index.php which may be serving as a hook for referencing Javascript files:

...
<?php
   /* Aplicar sempre a função wp_footer() imediatamente antes da tag de fecho </body>
    * no teu tema, ou vai-se quebrar muitos plugins, que geralmente usam
    * este gancho para adicionar ficheiros de JavaScript.
    */
    wp_footer();
?>
</body>
</html>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.