This topic has 3 replies, 2 voices, and was last updated 8 years by Radu.

  • Author
  • #81704
     raniele
    Participant

    Hello
    I’m trying to hide the buddypress profile div#item-nav div#subnav items to site visitors.

    I was thinking to use a is_user_logged_in() tag adding it to buddypress/bp-theme/bp-default/header.php in KleoChild

    Could you please advise whether this is the most convenient approach either if a more appropriate procedure should be preferred?

    Thanks in advance for your support.

    #81909
     Radu
    Moderator

    Hi,

    You can do this easily by using this css snippet.

    COPY CODE
    
    div#subnav {display:none !important;}
    

    Add this css snippet to Wp-admin -> Theme options -> Quick CSS

    Best Regards

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #81913
     raniele
    Participant

    Hi Radu and thanks for you answer. However I am looking to hide the div for site visitors only. logged on members should still be able to use navs and subnavs.I am afraid this wasn’t very clear in my original question. any suggestion?
    thanks in advance

    #82036
     Radu
    Moderator

    Hi,

    Sorry for misunderstanding,

    1. Remove the code have you provided from Quick CSS section from Theme Options.

    2. Paste the code from below to your kleo-child/functions.php

    COPY CODE
    
    if( is_user_logged_in() ) {  } else {
    echo '
    <style>
    div#subnav {display:none !important;}
    </style>
    ';
    }
    

    Best Regards

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘KLEO’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?