BuddyDev

Search

Add BuddyPress header to specific pages

Tagged: 

  • Participant
    Level: Initiated
    Posts: 10
    demonboy on #25944

    Hi,

    I am using the MemberPress plugin that creates an account page. For consistency I’d like to include the BuddyPress header on this page. That is, the BuddyPress menu and avatar, right down to Personal/Mentions/Favourites/Friends.

    I can muddle my way through php at a push but I was wondering if there was a hook that I can add into my functions.php file that says ‘when on page id 40450, add the BP header’.

    Any pointers?

    Thanks in advance.

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2935
    Ravi on #25947

    Hello,

    Thank you for posting. It’s bit difficult to add BuddyPress header to MemberPress account page instead of you can add a new Nav item for “Account” for user profile and show account page content to it. Please refer this for adding new tab for content.

    https://gist.github.com/raviousprime/dd4edd6875709c8d4cc9a2b9bf044652

    Regards
    Ravi

  • Participant
    Level: Initiated
    Posts: 10
    demonboy on #25950

    Hi Ravi. Is this any different from my post the other day about adding custom links to the BuddyPress menu (https://buddydev.com/support/forums/topic/add-new-link-to-the-buddypress-member-profile-page/)?

    Or are you suggesting echoing the content of the account page by changing the echo here to page id?

     * Display content on tab.
     */
    function buddydev_custom_screen_content() {
    	echo 'hello BuddyDev';
    } 
  • Keymaster
    (BuddyDev Team)
    Posts: 24212
    Brajesh Singh on #25961

    Hi demonboy,
    It is not simple to accomplish.

    You can mimic the layout by copying the member header and changing the displayed user details with logged in user.

    This may need some developer assistance though.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 10
    demonboy on #25965

    OK, thanks for that.

The topic ‘Add BuddyPress header to specific pages’ is closed to new replies.

This topic is: not resolved