Hide Page From Navigation
-
Hi there,
I want to remove a page from the navigation bar so that visitors would only be able to visit this page if I gave them the URL.
I am using Cordobo Green Park 2 theme and my URL is https://www.musicteacherjobsolutions.com.
The URL of the page I want to hide is here:
https://www.musicteacherjobsolutions.com/thank-you-for-your-interest-were-updating/I’ll paste the code for my header.php below. Can someone help? I’m a total newbie at the coding aspect of WP.
Here is the code of my header.php…thanks again.
Julia
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”https://www.w3.org/1999/xhtml” <?php language_attributes(); ?>>
<head profile=”https://gmpg.org/xfn/11″>
<meta http-equiv=”X-UA-Compatible” content=”IE=8″ />
<meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″ /><title><?php wp_title(‘»’, true, ‘right’); ?> <?php bloginfo(‘name’); ?></title>
<link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_url’); ?>” type=”text/css” media=”all” />
<!–[if IE 6]>
<link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_directory’); ?>/ie6.css” type=”text/css” />
<![endif]–><meta name=”robots” content=”index,follow” />
<link rel=”alternate” type=”application/rss+xml” title=”<?php bloginfo(‘name’); ?> RSS Feed” href=”<?php bloginfo(‘rss2_url’); ?>” />
<link rel=”alternate” type=”application/atom+xml” title=”<?php bloginfo(‘name’); ?> Atom Feed” href=”<?php bloginfo(‘atom_url’); ?>” />
<link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />
<link rel=”shortcut icon” href=”<?php bloginfo(‘stylesheet_directory’); ?>/favicon.ico” type=”image/x-icon” /><?php
if (isset($_SERVER[‘HTTP_REFERER’]) && strpos($_SERVER[‘HTTP_REFERER’], ‘images.google.com’))
echo ‘<script language=”JavaScript” type=”text/javascript”>
if (top.location != self.location) top.location = self.location;
</script>’;
?><?php if ( is_singular() ) wp_enqueue_script( ‘comment-reply’ ); ?>
<?php wp_head(); ?>
</head>
<body id=”home”><div id=”header” class=”clearfix”>
<ul id=”accessibility”>
- /” title=”<?php _e(‘Go to homepage’, ‘default’); ?>”><?php _e(‘Home’, ‘default’); ?>
- <?php _e(‘Content’, ‘default’); ?>
- “>RSS
<?php wp_meta(); ?>
<?php wp_register(); ?>
<li class=”last-item”><?php wp_loginout(); ?><div id=”branding”>
<h1 id=”logo”>/” title=”<?php bloginfo(‘name’); ?>”><?php bloginfo(‘name’); ?></h1>
<div class=”description”>
<?php bloginfo(‘description’); ?>
</div>
</div><div id=”nav” class=”clearfix”>
<div id=”nav-search”>
<?php get_search_form(); ?>
</div>
<ul id=”menu”>
<li class=”page-item-home <?php if ( is_home() ) { ?> current_page_item <?php } ?>”>/”><?php _e(‘Home’, ‘default’); ?>
<?php greenpark_globalnav() ?><div id=”submenu-bg”>
<?php if ( !is_search() && !is_404() ) {
if($post->post_parent)
$children = wp_list_pages(“title_li=&child_of=”.$post->post_parent.”&echo=0″);
else
$children = wp_list_pages(“title_li=&child_of=”.$post->ID.”&echo=0″);
if ($children) {
echo “<ul id=\”submenu\”>”;
echo $children;
echo “”;
}
} ?>
</div>
</div></div>
<div id=”main” class=”clearfix”>
- The topic ‘Hide Page From Navigation’ is closed to new replies.