Hi Weslei Barbosa, If you want to remove the left sidebar in the DW Wallpress, you can open the single.php & layout-blog.php file. Then, look for the code at line 18 & 39.
Replace the following code:
<?php get_sidebar('secondary'); ?>
..with new code:
<!-- <?php get_sidebar('secondary'); ?> -->
Save it and let us know the result, my friend 🙂 Regards,
Hello, I applied the suggestion above (replacing the line in single.php & layout.blog.php) but I still see the left sidebar. Is there maybe another way to solve this (since it’s been a year that this qestion was post)? Regards,
If you want to remove the left sidebar in the single post and Blog page, you can remove the following code (line 3 to line 5)
<?php get_sidebar(); ?>
If you have any issue, you can send me your site for further checking.
Hope this helps !
Hello Dominic, thanks for your answer. I deleted the line you mentioned, but still the sidebar is there. My website is pullyoursocksup.nl. And by the way: I already set the left padding to 10px, in case you were wondering what happened.
I have checked your site and I see that you have confused between some page, If you want to remove the left sidebar in the Home page, you need to open the index.php file (line 38).
Or you can add the following code to the style.css file:
#sidebar {display: none;}
Regards,
Oohh, indeed.. how stupid? :).
Of course this solved the issue. Thank you.
Regards,
Dominic,
Thanks for you answer.
I found a different way to solve this by creating custom templates codes for post pages.
It’s so good to count on a suport like this.
Regards from Brazil, my friend!
Please login or Register to submit your answer