Try to find out what’s wrong with this footer.php
file. Here is the code of the footer.php
:
<?php
/**
* The template for displaying the footer
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package cliowp
*/
?>
<?php
wp_nav_menu(
array(
'theme_location' => 'footer_menu_location',
'menu_class' => 'cliowp-menu-bottom',
'container' => 'nav',
)
);
?>
</body>
</html>
Answer
You have to include the wp_footer() function before the closing </body>
Example:
<?php
/**
* The template for displaying the footer
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package cliowp
*/
?>
<?php
wp_nav_menu(
array(
'theme_location' => 'footer_menu_location',
'menu_class' => 'cliowp-menu-bottom',
'container' => 'nav',
)
);
?>
<?php wp_footer(); ?>
</body>
</html>
The wp_footer()
function is essential because it inserts references to scripts and stylesheets or other elements added by your plugins or third-party plugins, themes, etc.
Entrepreneur | Full-stack developer | Founder of MediSign Ltd. I have over 15 years of professional experience designing and developing web applications. I am also very experienced in managing (web) projects.