Support » How-To and Troubleshooting » Sidebar at the bottom of the page
7 years, 6 months ago
can anyone help me with a sidebar problem?
The sidebar moved to the bottom of the page, can’t get it up like before… have tried to change the theme but it is still the same…
Looks like when I click on a post’s title to view only the post, the sidebar looks fine.
Make sure your sidebar() function is called properly in the page.php file like it is in post.php file.
The call should be at the bottom of the files. Typically, this is what the bottom of your page.php file should look like:
<?php get_sidebar(); ?>
<?php get_footer(); ?>
The sidebar() function might need to be below a </div> tag (i.e. it might be inside one it shouldn’t be in).
Hi, thanks for the advise, I have checked the bottom of the page.php, it looks fine…
I found some errors here (http://validator.w3.org/check?uri=http%3A%2F%2Fgadgetan.com&charset=%28detect+automatically%29&doctype=Inline&ss=1&group=0&user-agent=W3C_Validator%2F1.654)
But didn’t know how to fix this, didn’t know which page to go to…
still having the error….
Sorry, I’m not sure without actually getting into your code and debugging.
Those errors might be in your page.php file. Check to make sure you have the closing > in your tags W3.org shows.
When I see a problem like the one you have, my first checks are typically to see if code is placed inside a <div> tag when it should be outside one and then also a css issue.