Archived topic
Can't turn off the sidebar on WPForo
8 replies · Started by Ramon on February 22, 2020
Hi guys,
First of all I wanna say: Nice template guys, congrats!
I'm facing a couple of problems but mostly all related to the same problem, the wpforo setting up with generatepress.
1. I can't turn off the sidebar on WPForo pages. The plugin create dynamic pages and I can not turn off the sidebar with generatepress option. I tried to use a filter as mentioned on: https://docs.generatepress.com/article/sidebar-layout/
But didn't work.
I only want to disable generatepress sidebar and use the WPForo sidebar. Same as this example:
https://wpforo.com/community/faq/
2. Also for those WPForo pages I would like to disable the second menu and the breadcrumbs. I attach you a screenshot to help you understand it.

Thanks in advance!
Ramon
Hi there,
Can you please do this first?
https://www.screencast.com/t/cR07inBO7iy
1. Is the linked page the page in question? If so looks like it's just a static page so you can either use the disable element metabox:
https://docs.generatepress.com/article/disable-elements-overview/
Or Layout Element for multiple pages:
https://docs.generatepress.com/article/layout-element-overview/
2. You should be able to disable the secondary navigation using the same 2 methods mentioned above.
As for breadcrumbs, how are you adding it?
Hi Leo,
As I already mentioned before, I can't disable the sidebar on those pages with the methods you mentioned.
1. I can’t turn off the sidebar on WPForo pages. The plugin create dynamic pages and I can not turn off the sidebar with generatepress option. The page is not the linked one. WPForo generates another page.
2. Layout Elements doesn't let me disable the sidebar on WPForo pages, I already checked.
The breadcrumps are added by Layout elements inserting a php code. I'm using Yoast SEO Breadcrumbs.
Hmm that case you would need to check with WPForo's support to see if there is a if statement we can use for this filter on those pages:
https://docs.generatepress.com/article/sidebar-layout/#using-a-function
Then we can use the same if statement for breadcrumbs:
https://docs.generatepress.com/article/generate_layout_element_display/
Let me know what they say :)
By if statement, I meant conditional tag like these:
https://codex.wordpress.org/Conditional_Tags
We would need something for WPForo.
Alright, I'll contact them and get back to you with the answer.
Thanks Leo.
No problem :)
Hi Leo, here's the solution:
1. To delete the sidebar: WPForo creates a page called forum. All the changes made on that page will be applied to the WPForo pages. I deleted the sidebars on that page and started using the new WPforo sidebar created by the plugin (inside widgets page).
2. To delete breadcrumbs on WPForo pages: I used the following css:
.page-id-1778 #breadcrumbs {display:none;}
Thanks Leo for your help.
Thanks for reporting back!