[Support request] How to hide sidebar when using a layout element is not possible

Home Forums Support [Support request] How to hide sidebar when using a layout element is not possible

Home Forums Support How to hide sidebar when using a layout element is not possible

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1630093
    Carsten

    Hi there, I have been looking through the documentation to find a function to hide the sidebar on specific BuddyPress pages and components, in this case bp_is_activity_component() or bp_is_activity_component().

    Please note that I can’t use a Layout Element to Disable the Sidebar in this case. I would prefer to use a function solution rather than CSS

    Thanks!

    #1630633
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    This should help: https://docs.generatepress.com/article/sidebar-layout/#using-a-function

    There are a handful of examples in there where you’d just need to replace the conditions with the ones you mentioned.

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