Hide sidebar on pages but not on posts

Hello,

There has been some edit made somewhere by my client that’s allowing the sidebar to show up on pages with the “Blank-Container, header, footer” template. I can hide it using the global “full width” setting but then that hides the sidebar on the blog pages as well. Basically, I need the inverse of what the customizer has options for - hide the sidebar on all pages, but show on all posts unless otherwise noted.

I’m assuming I need custom CSS for this.

Thank you,
T

This is an automated message to notify you that your thread was posted in the wrong forum, and it has been moved to the correct place. A member of our team will be happy to reply just as soon as your thread is up.

For support, all questions are to be posted in the Themeco category or by clicking + Support. The other categories are for discussion with fellow Apex members. Please keep this in mind in the future. Thank-you!

How support works.

Hi There,

Thank you for writing in, I think it would be best if we reverse/remove the edit that made the “Blank-Container, header, footer” template to show a sidebar. If there is a reason why we can not remove the edits made by your clients, please clarify so we will try a different solution instead (yeah maybe a custom css).

But “Blank - Container | Header, Footer” template should not have a sidebar, use Layout - Content Left, Sidebar Right template instead if the page need to have a sidebar…

Cheers!

We chose that template so it wouldn’t have a sidebar, but a third party was working on the site and suddenly there’s a sidebar on that template. And it’s not even a sidebar - it’s existing at the bottom of the page above the footer.

I can’t remove the edits because I can’t get clarification on how this happened. Is there another solution we can use to override this?

Hi again,

Can you please share the URL of your site and related posts so we can take a closer look?

Thanks!

https://www.reclaimnewyork.org/

https://www.reclaimnewyork.org/transparency/
https://www.reclaimnewyork.org/affordability/

Hi There,

Add this to your custom CSS to hide the custom sidebar.

body.page-template-template-blank-1 .x-sidebar {
	display: none;
}

But it would be best if you can reverse the edits made to the template.

Hope it helps,
Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.