Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to make my BuddyPress widgets only show on specific pages?

  • @chase8705

    Participant

    I have a site where I am wanting my BuddyPress widgets to show only on the pages that I choose. I have tried using Widget Logic Visual but whenever I select which page I want the widget to be on, it doesn’t show up there. But when I don’t assign it to a specific page, then it shows up on all pages of my site. I am not wanting to show those widgets on all pages. So then I downloaded Dynamic Widgets plugin and tried that. This one did let it show on the pages that I wanted it to but it also shows on the rest of the site too.

    So my question is “How do I get my BuddyPress widgets such as (Members widget) to only show up on the pages that I choose such as (Activity page) and not show up on my whole website?”

    Any help is appreciated. Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • @inge12

    Participant

    In searching for a solution to my problem of unwanted sidebars I found https://codex.buddypress.org/developer/theme-development/a-quick-look-at-1-7-theme-compatibility/ which provides instructions of how to insert BP specifications into a child theme.

    To get the results you want, you need to first create a child theme for your main wordpress theme. Then you put the specifications that apply only to the BuddyPress portion of the site into the child theme. You would need to do this:

    So if we want to remove the sidebar for BP pages but not for all WP ‘pages’ or call a specific BP sidebar get_sidebar(‘buddypress’), we could take a copy of page.php and rename it to ‘community.php.’ and have BP use this file for all it’s requirements, as can be seen from the order above the first two files will not be found but the third will be and therefore used.

    And so will I – to solve my problem.

    @chase8705

    Participant

    I am definitely not familiar with a child theme. What is a child theme and should I be using them? Thank you for your help.

    @bphelp

    Participant

    @chase8705
    You should always use a child theme instead of modifying the theme directly because if you update that theme then it will overwrite any modifications you made but if you made a child theme then the update will not effect modifications and all mods in the child theme will be preserved. Please see:
    https://codex.buddypress.org/developer/theme-development/a-quick-look-at-1-7-theme-compatibility/
    and
    https://codex.wordpress.org/Child_Themes

    @chase8705

    Participant

    Ok thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to make my BuddyPress widgets only show on specific pages?’ is closed to new replies.
Skip to toolbar