-
Author
-
October 10, 2015 at 14:08 #81704
raniele
ParticipantHello
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.
October 12, 2015 at 20:01 #81909Radu
ModeratorHi,
You can do this easily by using this css snippet.
COPY CODEdiv#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 solutionOctober 12, 2015 at 20:10 #81913raniele
ParticipantHi 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 advanceOctober 13, 2015 at 15:40 #82036Radu
ModeratorHi,
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 CODEif( 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 -
AuthorPosts
The forum ‘KLEO’ is closed to new topics and replies.

