I've set the "my page" settings so that only members can view it. Can I set the navigation tab the same way? It'd be cool and make the site cleaner if the tab wasn't there unless you were logged in and a member of the site... once logged in...there it is! thanks
You need to be a member of Ning Creators Social Network to add comments!
Replies
Hi there!
The navigation tab for none logged in members could be hidden with the code.
First of all place this code in the Custome code section, End of page field:
<script>
if (ning.CurrentProfile!=null) {
x$('nav.header-nav.navbar').attr('style','display:block;');}
else{x$('nav.header-nav.navbar').remove();}
</script>
Then place the following line in the Design Studion's Custom CSS section:
nav.header-nav.navbar {display:none;}
And voila the navigation of your network would be hidden for guests.
Hope that it's something you have been looking for.
Best regards,
Ning Team.
thanks! Will this hide the whole navigation bar or just the "my page" tab? I was hoping to just hide the "my page" but leave the others for navigation...is this possible?
Hi there!
The code from above would hide the whole navigation menu. If you wish to hide only "My profile" for none logged in members just put the following code to the Custome code section into End of page field:
<script>
if (ning.CurrentProfile===null) {
x$('nav.header-nav.navbar a[href*="/main/authorization/signIn?target=%2Fmy%2Fprofile"]').parent().remove();}
</script>
Best regards,
Ning Team.
great! thanks!
You are welcome :-)