[Resolved] Sidebar/Content For WooCommerce & bbPress

Home Forums Support [Resolved] Sidebar/Content For WooCommerce & bbPress

Home Forums Support Sidebar/Content For WooCommerce & bbPress

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #243660
    Mary Pearson

    I have my pages set to Sidebar/Content but my bbPress Forum pages and my WooCommerce product pages show as Content/Sidebar.

    How do I make them Sidebar/Content?

    Thank you.

    #243673
    Tom
    Lead Developer
    Lead Developer

    You would need to use the sidebar PHP filter: https://generatepress.com/knowledgebase/choosing-sidebar-layouts/#sidebar-filter

    There’s a WooCommerce example there.

    For bbPress, you would do: is_bbpress()

    Hope this helps πŸ™‚

    #243674
    Mary Pearson

    Many thanks Tom! Much appreciated!

    #243677
    Tom
    Lead Developer
    Lead Developer

    You’re welcome πŸ™‚

    #243685
    Mary Pearson

    Works perfectly but when I try to go to another page I get

    Fatal error: Call to undefined function is_woocommerce() in /themes/generatepress_child/functions.php on line 17

    Now the funny thing is that the same thing for bbpress works perfectly and no error.

    #243701
    Tom
    Lead Developer
    Lead Developer

    That error will only happen if WooCommerce isn’t activated.

    #243780
    Mary Pearson

    Thanks Tom. I’m using it on Multisite and only had it activated on the Store site. I’ve now Network Activated Woo and all works perfectly now.

    Thank you again!

    #243830
    Tom
    Lead Developer
    Lead Developer

    You’re welcome πŸ™‚

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