Hide Nav Bar from guests (Works perfectly with Private BuddyPress)
-
Here’s something I would like to share. This edit was done in the header.php file of buddypress to hide the Nav Bar from guests and displays WordPress pages only.
`
<html xmlns="http://www.w3.org/1999/xhtml" >
<meta http-equiv="Content-Type" content="; charset=” />
<meta name="generator" content="WordPress ” />
<link rel="stylesheet" href="” type=”text/css” media=”screen” />
<link rel="alternate" type="application/rss+xml" title=" | ” href=”" />
<link rel="alternate" type="application/rss+xml" title=" | | ” href=”" />
<link rel="alternate" type="application/rss+xml" title=" | | ” href=”" />
<link rel="alternate" type="application/rss+xml" title=" ” href=”" />
<link rel="alternate" type="application/atom+xml" title=" ” href=”" /><link rel="pingback" href="” />
<body id=”bp-default”>
<a href="” title=”">
<form action="” method=”post” id=”search-form”>
<input type="submit" name="search-submit" id="search-submit" value="” />
`Just replace `yoursite.com` with the URL of your site
Cheers!
You must be logged in to reply to this topic.