View Full Version : Deleted page still appearing in navigation menu

11-15-2010, 09:26 PM

Im currently working on my website (http://energiacelestial.com/) using the F2 theme for wordpress.

This theme came with the tabs of HOME and ABOUT - I managed to eliminate HOME from the navigation bar, but the "ABOUT" page is just lingering there, even when I have deleted the page and it doesnt appear on my APPEARANCE-MENU list.

It still appears on the navigation bar and when clicking on it it says "Error 404 - Not found" - so im not sure if this is embedded automatically to direct to this page - how and where can I can change the code so that ABOUT is taken off my navigation menu?

<!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(); ?>>

<head profile="http://gmpg.org/xfn/11">

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

<title><?php wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title>

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/print.css" type="text/css" media="print" />

<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

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


<body <?php body_class(); ?>>
<div id="page">

<div id="header">
<div id="headerlogo">
<h1><a href="<?php bloginfo('url') ?>" title="<?php bloginfo('name') ?>: <?php bloginfo('description') ?>"><?php bloginfo('name') ?></a></h1>
<div class="description"><?php bloginfo('description') ?></div>

<div id="hmenu"> <!-- Horizontal navigation menu -->
<a style="display:none;" href="#content">Skip to content</a>
<?php wp_list_pages('title_li=&depth=2&sort_column=menu_order&exclude='.f2_option('hmenu_exclude')) ?>
<li class="hmenu_rss"><a href="<?php bloginfo('rss2_url'); ?>"><?php _e('Feed', 'f2') ?></a></li>

<div id="container">
<div id="wrapper">

Chris Hick
11-15-2010, 09:50 PM
This is your menu code:

<div id="hmenu"> <!-- Horizontal navigation menu -->
<a style="display:none;" href="#content (http://www.codingforums.com/view-source:http://energiacelestial.com/#content)">Skip to content</a>
<li class="page_item page-item-81"><a href="http://energiacelestial.com/?page_id=81 (http://www.codingforums.com/view-source:http://energiacelestial.com/?page_id=81)" title="Techniques">Techniques</a></li>
<li class="page_item page-item-83"><a href="http://energiacelestial.com/?page_id=83 (http://www.codingforums.com/view-source:http://energiacelestial.com/?page_id=83)" title="Support Group">Support Group</a></li>
<li class="page_item page-item-84"><a href="http://energiacelestial.com/?page_id=84 (http://www.codingforums.com/view-source:http://energiacelestial.com/?page_id=84)" title="Courses">Courses</a></li>
<li class="page_item page-item-85"><a href="http://energiacelestial.com/?page_id=85 (http://www.codingforums.com/view-source:http://energiacelestial.com/?page_id=85)" title="Shop">Shop</a></li>
<li class="page_item page-item-86"><a href="http://energiacelestial.com/?page_id=86 (http://www.codingforums.com/view-source:http://energiacelestial.com/?page_id=86)" title="Contact">Contact</a></li>
<li class="page_item page-item-65"><a href="http://energiacelestial.com/?page_id=65 (http://www.codingforums.com/view-source:http://energiacelestial.com/?page_id=65)" title="About">About</a></li>
<li class="page_item page-item-80"><a href="http://energiacelestial.com/?page_id=80 (http://www.codingforums.com/view-source:http://energiacelestial.com/?page_id=80)" title="Services">Services</a></li>
<li class="hmenu_rss"><a href="http://energiacelestial.com/?feed=rss2 (http://www.codingforums.com/view-source:http://energiacelestial.com/?feed=rss2)">Feed</a></li>
Take out that entire li that has the about in it.

11-15-2010, 10:01 PM
Im not sure if i did this right - i replaced the code, and it worked but
the only problem now is that I have 2 languages installed, so when clicking on spanish now, it doesnt translate - it keeps the same titles? Is there any code I can use to just exclude ABOUT rather than the listing the ones to include?

Chris Hick
11-15-2010, 10:14 PM
Just what exactly are you trying to do?

11-15-2010, 10:39 PM
Sorry if i havent been very clear - its just that im trying to remove the ABOUT tab from the navigation bar, as I never put it there in the first place, it seems to have been embedded within the theme.

The solution you gave me worked fine - if my page was just in english, but its in 2 languages, so if im understanding this right and how i put the code in - it will tell which pages to show in the navigation bar, but from what I can see by doing this it takes away the translation that my WPML plugin uses, as when I click spanish, the titles do not translate but stay the same in english.

So I was wondering instead of listing all the page titles that I want to include, is there anyway of modifiying the code, so that it just excludes this line:

<li class="page_item page-item-65"><a href="http://energiacelestial.com/?page_id=65" title="About">About</a></li>

I hope this makes sense!

11-15-2010, 11:30 PM
t may be generated by the PHP in which case you would have to edit one of the associated PHP files.

11-16-2010, 12:00 AM
Im not very advanced at all with coding, and Im sorry to be a pain, but im not sure which PHP to look at or what code to be on the look out for. Any ideas? I find it very strange that its pulling up a phantom page that I cant even see on my account?

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum