- This topic has 13 replies, 5 voices, and was last updated 3 years, 3 months ago by
David.
-
AuthorPosts
-
May 17, 2022 at 1:56 pm #2223032
John
Hi,
I cant’ get rid of a ‘Search field’ and ‘Archives’ of the blog’s right sidebar
Blog is set to a static page. A user must be logged in to access blog posts.
This is what I’ve done so far without success.
1. Appearance > Widgets (all deleted)
2. Customizer > Layout > Sidebars, sidebar layout, blog sidebar, single post sidebar all set to (no sidebars)
3. Appearance > Elements > New Element: Sidebar > Sidebar Layout (content- no sidebars). DISPLAY RULES: Location (blog), Users (All Users)
4. Server and browser caches cleared.What I want is for blog posts to render the full width of the content container without sidebars.
Thanks for the help!
John
May 17, 2022 at 1:58 pm #2223034Leo
StaffCustomer SupportHi there,
Any chance you can link us to the page in question?
You can use the private information field:
https://docs.generatepress.com/article/using-the-premium-support-forum/#private-informationLet me know 🙂
May 17, 2022 at 2:06 pm #2223039John
Hi Leo,
Access credentials sent.
Thanks!
John
May 17, 2022 at 2:20 pm #2223049Ying
StaffCustomer SupportHi John,
The right sidebar is enabled in the post editor of the sample post:
https://www.screencast.com/t/0EHE1nyWYThe layout element which you are using, only assigned to blog page, if you want to remove all sidebars for single posts as well, try add posts > all posts in the location of the layout element:
https://www.screencast.com/t/UD1rwYdZxsZtMay 17, 2022 at 5:42 pm #2223111John
Hi Ying,
As suggested, I added posts > all posts in Element (REMOVE BLOG SIDEBAR) > Display Rules > Location and cleared Server/Browser cache.
The sidebar still shows.
I also tried adding all individual post categories > category name(s)
The sidebar still shows.
May 17, 2022 at 5:48 pm #2223113Ying
StaffCustomer SupportThen can you set the sidebar layout to default in each single post?
https://www.screencast.com/t/0EHE1nyWYIt looks like the sidebar setting in single post has the priority.
You can remove all the single post related locations from the layout element.
May 17, 2022 at 5:52 pm #2223114John
I could do that but shouldn’t there be a way to do this without going to each individual post?
May 17, 2022 at 6:09 pm #2223119John
Another question is: how is it that a search field and archives are turned on in the sidebar? Where are these controlled if not in widgets? Remember, I have no widgets activated.
May 17, 2022 at 6:15 pm #2223120Ying
StaffCustomer SupportI would say that’s the way to do this right.
But you could also give this PHP snippet a try to make things easier.
add_filter( 'generate_sidebar_layout', function( $layout ) { if ( is_single() ) { return 'no-sidebar'; } return $layout; } );
May 17, 2022 at 6:19 pm #2223122Ying
StaffCustomer SupportThat’s the default widgets as placeholder to show you that the sidebar is there, for more info:
https://docs.generatepress.com/article/sidebar-layout/#default-widgetsJune 16, 2022 at 6:59 am #2255242Callista
Hi there,
I am having this exact same issue. I have sidebars turned off everywhere and all widgets deleted, but I still have them (search bar and archives) showing up on my posts page. I came here to search for this exact question. I’ve been using GP a long time and have never run into this before.
I went to the page settings for the posts page. I can’t change the layout (there is no option). I created a new page and made sure it was set to no sidebars, and made that my posts page, and the sidebar appeared and the layout options disappeared. The sidebars follow whatever page I designate as the posts page.
I’m starting to think there is a problem with the blog archive page?
Thanks for any help you can give me.
Best,
CallistaJune 16, 2022 at 7:06 am #2255253David
StaffCustomer SupportHi there,
do you have any Layout > Elements in Appearance > Elements ?
June 16, 2022 at 7:09 am #2255256Callista
Hi David,
I feel so silly right now. I just checked my Snippets plugin and I had an “Add Sidebar” snippet turned on! (I guess from a previous layout issue.) Doh! Turned it off and voila! It went away. So sorry to waste your time.
Have a great day!
Best,
CallistaJune 16, 2022 at 7:12 am #2255259David
StaffCustomer SupportNo worries – glad to hear you found the issue 🙂 Have a great day too!
-
AuthorPosts
- You must be logged in to reply to this topic.