StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-10-2010, 01:05 PM
sippi sippi is offline
Registered User
Genesis Member
Pro Plus Member
 
Join Date: Sep 2009
Posts: 52
Default Exclude pages from Navbar

Hi,

I have a problem with excluding a page from my navigation area.

I watched the tutorial here: I want to exclude two pages.

Is it right, that I need to embed the following in my header.php:

Quote:
<?php wp_list_pages('title_li=&depth=4&sort_column=menu_order&exclude= 92,96'); ?>
But where exactly I need to insert it?
Thats my header.php:

Quote:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes('xhtml'); ?>>
<head profile="http://gmpg.org/xfn/11">

<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<meta name="language" content="en" />

<title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' :'; } ?> <?php bloginfo('name'); ?></title>
<link rel="shortcut icon" href="<?php echo bloginfo('template_url'); ?>/images/favicon.ico" type="image/x-icon" />

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> <?php _e("RSS Feed", 'studiopress'); ?>" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> <?php _e("Atom Feed", 'studiopress'); ?>" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>

<script type="text/javascript"><!--//--><![CDATA[//><!--
sfHover = function() {
if (!document.getElementsByTagName) return false;
var sfEls = document.getElementById("nav").getElementsByTagNam e("li");
<?php // if you only have one main menu - delete the line below ?>
var sfEls1 = document.getElementById("subnav").getElementsByTag Name("li");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
<?php // if you only have one main menu - delete the "for" loop below ?>
for (var i=0; i<sfEls1.length; i++) {
sfEls1[i].onmouseover=function() {
this.className+=" sfhover1";
}
sfEls1[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover1\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
//--><!]]></script>
</head>

<body>

<div id="wrap">

<div id="topnavbar">

<div class="topnavbarleft">
<p><?php echo date("l, F j, Y"); ?></p>
</div>

<div class="topnavbarright">
<a class="rsslink" rel="nofollow" href="<?php bloginfo('rss_url'); ?>"><?php _e("RSS Feed", 'studiopress'); ?></a>
</div>

</div>

<div id="header">

<div class="headerleft" <?php if(get_theme_mod('header_blog_title') != 'Text') { echo 'id="imageheader"'; } ?>>
<?php
if (is_home()) {
echo '<h1><a href="'.get_option('home').'/">'.get_bloginfo('name').'</a></h1>';
} else {
echo '<h4><a href="'.get_option('home').'/">'.get_bloginfo('name').'</a></h4>';
}
?>
<p><?php bloginfo('description'); ?></p>
</div>

<?php // To define the 468x60 ad, go to your WP dashboard and go to Appearance > Widgets. Select 468x60 Header Banner and then enter your add code into a text widget ?>

<div class="headerright">
<ul id="headerwidgeted">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('468x60 Header Banner') ) : ?>
<li><a href="#"><img src="<?php bloginfo('template_url'); ?>/images/468x60.gif" alt="<?php _e("Advertisement", 'studiopress'); ?>" /></a></li>
<?php endif; ?>
</ul>
</div>

</div>

<div id="navbar">

<div id="navbarleft">
<ul id="nav">
<li><a href="<?php echo get_option('home'); ?>"><?php _e("Home", 'studiopress'); ?></a></li>
<?php wp_list_pages('title_li=&depth=4&sort_column=menu_ order'); ?>
</ul>
</div>


</div>

<div class="clear"></div>

<div class="clear"></div>
I guess I need some help again.
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How To Include/Exclude Pages on Navbar Brian Gardner General Discussion 1 12-04-2009 10:19 AM
Trying to exclude page on Navbar Ronnie General Discussion 8 11-07-2009 09:08 PM
Exclude Post from Home Page on Navbar Right Andy General Discussion 10 12-18-2008 05:24 AM


All times are GMT -5. The time now is 01:27 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.