html - Wordpress Footer not displaying even after footer.php file is run


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.


<?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); = id;
  js.src = "//";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

In local the footer is displaying perfect with the same code, but in live the footer is not displaying.




I think you aremissing 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.

People are also looking for solutions to the problem: php - SendGrid webhook not receiving events


Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.