Skip to:
Content
Pages
Categories
Search
Top
Bottom

Profile settings link on every page


  • ttmt
    Participant

    @ttmt

    Hi all

    Is there a template in the bbpress theme that appears on every page

    I’m using the following code in loop-topics.php to show a link to the users profile page

    
    <a class="bbp-profile-button" href="<?php bbp_user_profile_url( bbp_get_current_user_id() ); ?>">Profile Settings</a>
    

    This works but only appears on the topics page.

    I would like the link to be on every page.

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

  • Robin W
    Moderator

    @robin-w

    link to the users profile page

    the logged in users profile or the profile of the topic author? and when you say everypage do you mean from the forum index down?

    If you write that code as a function you can then hook it to bbp_before_main_content

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