Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to add a div above the members profile.


  • Quentinius
    Participant

    @shred101

    Basically, I’m building my site using elementor and we want to incorporate buddypress.

    We have the main non-buddypress pages set up and they use a selection of templates – including a template for the main top menu bar which is fixed and scrolls down with the page (in the same way as the wp bar does).

    What I want to figure out is how I incorporate this menu bar into the buddypress templates and especially the member profile page.

    I’ve tried a couple of things out so far but with no luck and ideally I’m just looking for someone to point me in the direction of where I should place the code which calls the menu template. I would be grateful for some assistance thanks.

Viewing 1 replies (of 1 total)

  • clickallco
    Participant

    @clickallco

    You could insert the conditional code for all member pages, for instance, in a template like so

    <?php if ( bp_is_user() ) { ?>
        <!-- your code -->
    <?php } ?>

    If you’d rather only display it for logged in users and on their own profile, you’d do something like

    <?php if ( bp_is_my_profile() && is_user_logged_in() ) { ?>
        <!-- your code -->
    <?php } ?>

    etc..

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar