[Resolved] Can't turn off the sidebar on WPForo

Home Forums Support [Resolved] Can't turn off the sidebar on WPForo

Home Forums Support Can't turn off the sidebar on WPForo

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1173386
    Ramon

    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.

    captura

    Thanks in advance!
    Ramon

    #1173756
    Leo
    Staff
    Customer Support

    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?

    #1173998
    Ramon

    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.

    #1174020
    Leo
    Staff
    Customer Support

    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 🙂

    #1174053
    Leo
    Staff
    Customer Support

    By if statement, I meant conditional tag like these:
    https://codex.wordpress.org/Conditional_Tags

    We would need something for WPForo.

    #1174072
    Ramon

    Alright, I’ll contact them and get back to you with the answer.

    Thanks Leo.

    #1174638
    Leo
    Staff
    Customer Support

    No problem 🙂

    #1175887
    Ramon

    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.

    #1176516
    Leo
    Staff
    Customer Support

    Thanks for reporting back!

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.