Page jumps to footer on load
-
Hello!
I’m currently working on a WordPress theme based on the underscores.me starter theme. After a few days of coding I noticed that the page automatically jumps to the footer on load. If I remove the part that loads the footer widgets
<div class="footer-sidebar1"> <?php if(is_active_sidebar('footer-sidebar-1')){ dynamic_sidebar('footer-sidebar-1'); } ?> </div> <div class="footer-sidebar2"> <?php if(is_active_sidebar('footer-sidebar-2')){ dynamic_sidebar('footer-sidebar-2'); } ?> </div> <div class="footer-sidebar3"> <?php if(is_active_sidebar('footer-sidebar-3')){ dynamic_sidebar('footer-sidebar-3'); } ?> </div> <div class="footer-sidebar4"> <?php if(is_active_sidebar('footer-sidebar-4')){ dynamic_sidebar('footer-sidebar-4'); } ?> </div>
it doesn’t jump anymore. Does anyone have any idea why it does this?
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Page jumps to footer on load’ is closed to new replies.