Site logo

Archived topic

How to get rid off "Search" and "Archive" widgets in right or left sidebar?

7 replies · Started by Walter Schwarz on February 21, 2018

Viewing posts 1–8 of 8

I tried to get it by eliminating some code in sidebar.php - but I did not succeed.
What I want to get is selecting "content + right side bar" with text in content and nothing at all in the right sidebar. The sidebar should be just a plain column.
I always get as standard the widgets "Search" and "Archive" inserted - what I really do not need there on all pages.
Please help ...
Walter

PS: I moved over from twenty fourteen and love to work with GeneratePress now - even if I am at the start of the learning curve :-)

Hi there,

Those are the default widgets that show up when a sidebar layout is selected but no specific widgets are added - they are there to fill the space as most people would use content only layout if no sidebar widgets are added.

Is there a specific layout you want to achieve? We can probably do it without the sidebar layout.

Let me know :)

Hi Leo,

I just want to keep the content - sidebar layout for all pages of a site. As long as some pages will not have any content in the sidebar this should be blank (to keep the content column width stable). One workaround could be to insert a HTML-widget with unvisible minimal text. My question: is there a more elegant solution?

Thank you,
Walter

Hmm if you don't mind a empty sidebar then that's actually a good work around.

So if the goal is to keep the content container always the same, what if we change the container width for pages without sidebar?

Hi,
thank you for your offer. But my preference is to fill the sidebars with statements, hints, pictures and similar small stuff. But that will take time ... :-) And using your recommendation "Content Aware Sidebars" I will play around with it. Did you find in the meantime an even better plug-in for widget-management?
Thank you,
Walter

Content Aware sidebars is still the best I believe :)

That works perfectly,
Walter

Hi there,

the Content Aware Sidebars should do the job of specifying what widgets are on display.
For the empty sidebars you could try adding a Custom HTML widget, and just add a HTML comment for its content:

<!-- HTML Comment -->

That should keep the sidebars empty. Then just set its conditions to display where you need it.

--
David Beckwith
Support Specialist

No problem :)

This archived topic is closed to new replies.