• I’m doing Nu Html Checker on https://validator.w3.org to validate my site, I found error which saying:

    Element style not allowed as child of element body in this context. (Suppressing further errors from this subtree.)

    It turns out the code comes from footer.php precesely from <?php wp_footer(); ?>

    Where is <?php wp_footer(); ?> located?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Hi there!

    The function can be found in the footer.php file. Though I am curious as to why you are wanting to find this function as it is a needed function ( a hook really ) in order for the theme and all your plugins to work.

    Hi @zhares24,

    I hope you are well today and thanks for posting here.

    As Jose said above you will find the function wp_footer call in the following file of the theme on line number 39

    sparkling/footer.php

    This function is used to hook something in the footer so i think you may be using some plugin that is adding the style element in the body tag by hooking to this function.

    So please try temporary deactivating all plugins and see whether everything works fine and then enable the plugins one by one to see which plugin is conflicting if any.

    Best Regards,
    Movin

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Where is php wp_footer located?’ is closed to new replies.