html - Wordpress Footer not displaying even after footer.php file is run
916
In my wordpress project footer is not displaying in all pages. Footer.php file is running I can debug, but the wp_footer() is not displaying the footer.
footer.php
<?php wp_footer();?> // here footer is not displayin, below code is running
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
</body>
</html>
In local the footer is displaying perfect with the same code, but in live the footer is not displaying.
Answer
Solution:
I think you are
missing wp_footer()
function inindex
andpage.php
file. Please have a look folder structure in theme and identify the main page and content page and putwp_footer()
function.It will definitely help you.