There is missing <footer id="colophon" role="contentinfo">
from the markups so obviously the footer.php
is missing from theme folder.
The footer.php
has wp_footer()
hook that theme injects its navigation.js
, so without this the menu won’t work, also anything that use this same hook won’t work.
There is also missing margin in image aligned, this mean theme’s style.css
had been edited directly.
So have a full site backup first, then temporary switch to other default WP theme, and then delete this current 2012 theme, and then reinstall a fresh copy of 2012 theme, then apply any modifications via Childtheme or via a Custom CSS plugin if only changes in CSS needed.
This is the code from my current footer.php:
<?php
/**
* The template for displaying the footer
*
* Contains footer content and the closing of the #main and #page div elements.
*
* @package WordPress
* @subpackage Twenty_Twelve
* @since Twenty Twelve 1.0
*/
?>
</div><!– #main .wrapper –>
<footer id=”colophon” role=”contentinfo”>
<div class=”site-info”>
<?php do_action( ‘twentytwelve_credits’ ); ?>
” title=”<?php esc_attr_e( ‘Semantic Personal Publishing Platform’, ‘twentytwelve’ ); ?>”><?php printf( __( , ‘twentytwelve’ ), ); ?>
</div><!– .site-info –>
</footer><!– #colophon –>&
</div><!– #page –>
<?php wp_footer(); ?>
</body>
</html>
The footer.php is NOT missing and contains the code you have referenced. Please provide a different solution.
Check if there is this <?php get_footer(); ?>
at the bottom of index.php
, single.php
, page.php
, archive.php
, category.php
, tag.php
, search.php
.
There is no footer markup in the source, no closing body tag, no closing html tag.
I checked each of the files that you mentioned and the code <?php get_footer(); ?> is at the bottom of each one. Please recommend another solution.
Try deactivate all plugins, clear browser cache, if the problem goes away, try reinstall it one by one to rule out the one that causes it.
I deactivated all of the plugins and cleared the browser cache and the mobile menu is still broken. Please recommend another solution.
So have a full site backup first, then temporarily switch to other default WP theme, and then delete this current 2012 theme, and then reinstall a fresh copy of 2012 theme, then apply any modifications via Childtheme or via a Custom CSS plugin if only changes in CSS needed.
Using a fresh copy of 2012 theme with your current WP installation will rule out if the missing footer is caused by edited theme or uncompleted recent WP update.
The reinstall of the theme fixed the mobile menu, thanks.