Skip to:
Content
Pages
Categories
Search
Top
Bottom

Add dynamic links to default theme sidebar login

  • Avatar of Ethane
    Ethane
    Participant

    @ethane

    Hi,

    Can someone help me?

    I searched the web but i didn’t find the solution where im searching for. Or i’m to dumb to understand the code ;).

    I want to add some dynamic links to the sidebar login from the standard buddypress theme. They only must be visible when a user is logged in. I want to place this links between the username and logout button.

    I’m trying all kind of php codes but it doesn’t have any results..

    Greets,

    Jacco

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of danbpfr
    danbpfr
    Participant

    @chouf1

    @ethane,

    can be done in buddypress/themes/bp-default/sidebar.php
    Make a copy of this file into your child theme.

    Add between line 17 & 18
    <?php  if ( is_user_logged_in() ):  ?>

    <div>your stuff here</div>

    <?php endif; ?>

    Avatar of Ethane
    Ethane
    Participant

    @ethane

    I’ve tried it with succes! Thanks for the help my friend!

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

You must be logged in to reply to this topic.