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.

201

Answer

Solution:

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

Source

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.