Support » Themes and Templates » [Resolved] Remove sidebar from home page?
2 years, 6 months ago
Is there a way to remove the sidebar from the main page? I have found it easy to remove the sidebar from other pages, but I cannot seem to find a way to remove the sidebar from the main page.
Any help would be really appreciated. Thanks!
Sure! Remove the code <?php get_sidebar(); ?> from index.php, page.php, single.php, search.php, archive.php and 404.php, and change the class of the .content element in each of those pages from left to center. That should take care of it.
<?php get_sidebar(); ?>
Let me know if it works out!
2 years, 5 months ago
Thanks for this helpful answer! I just applied this on my site, and it looks really good.
Would it be possible, however, to make the width of the page that posts can fill larger (so that the post title is directly under the first menu item, with an equal gap on the right)?
I’m not really that good with CSS, so I’d appreciate if you could offer any advice.
Thanks for creating an awesome theme!