I have a blog with the Catch-Box Theme. The Default Layout is: Content on left.
At the start-page, where are all the new articles are displayed, the content is on the left side, the widgets on the right side in the sidebar. So far so good.
The problem is that the widgets/the sidebar are still displayed, when I click on an article.
What can I do to remove the widgets sidebar in the article view?
Thanks for your help.
You’ll have to look in your single.php file and remove the code for the sidebar. You might have to adjust some of the css on that page too to make the content span the width of the page. I’ve never used that theme, so I don’t know for sure exactly what that code/css would be.
Cassihi’s advice is good. I wouldn’t use CSS to hide it, because your page will still be loading the sidebar and all of its widgets. There’s no need to load your sidebar if you don’t intend on displaying it.
We will be adding the layout option for pages and posts in later version update. For now, you only have option to select the overall layout from the theme option.
If page then there is one template disable sidebar. You can use that. For articles, you need to manual coding by building child theme. As we don’t recommend to change codes and css in the main theme file. As when we you update the theme, you changes will be gone. So, please be careful.
We have already implement the layout option in Simple Catch theme and now will be doing same in catch box.
- The topic ‘Remove sidebar in article view’ is closed to new replies.