Skip to:
Content
Pages
Categories
Search
Top
Bottom

Add “back to forums” link to Member Profile pages


  • richard.miller
    Participant

    @richardmiller-1

    I’m using BuddyPress with BBPress – and I’d like to ad a big graphic button to every Memeber Profile page that takes the user back to the BBPress forum.

    I assume I have to edit a template (and I’ve duplicated the BuddyPress template files to my child theme) – but can’t figure out which template to edit.

    Direction would be appreciated.

    http://fluentself.com/forums
    WP 4.8.2
    BBPress 2.5.13

Viewing 2 replies - 1 through 2 (of 2 total)

  • shanebp
    Moderator

    @shanebp

    You could edit a template.
    If you are using profile cover images, edit buddypress\members\single\cover-image-header.php
    Otherwise, edit buddypress\members\single\member-header.php

    But you can use a function instead.
    Both the templates mentioned above have two action hooks:

    do_action( 'bp_member_header_actions' );
    do_action( 'bp_profile_header_meta' );

    Choose the one that will place your button where you want it and write a function that adds the button.


    richard.miller
    Participant

    @richardmiller-1

    Thanks, that’s just what I needed.

    I actually added a line of linking code directly to that template (in the child theme). Any reason that’s a bad idea?

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