CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   HTML & CSS (http://www.codingforums.com/forumdisplay.php?f=13)
-   -   Deleted page still appearing in navigation menu (http://www.codingforums.com/showthread.php?t=209344)

suizka 11-15-2010 08:26 PM

Deleted page still appearing in navigation menu
 
Hello!

Im currently working on my website 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?
Code:

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

</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>
</div>

<div id="hmenu"> <!-- Horizontal navigation menu -->
<a style="display:none;" href="#content">Skip to content</a>
<ul>
                <?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>
</ul>
</div>

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


Chris Hick 11-15-2010 08:50 PM

This is your menu code:

Code:


<div id="hmenu"> <!-- Horizontal navigation menu -->
<a style="display:none;" href="#content">Skip to content</a>
<ul>
        <li class="page_item page-item-81"><a href="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" title="Support Group">Support Group</a></li>
<li class="page_item page-item-84"><a href="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" title="Shop">Shop</a></li>
<li class="page_item page-item-86"><a href="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" title="About">About</a></li>
<li class="page_item page-item-80"><a href="http://energiacelestial.com/?page_id=80" title="Services">Services</a></li>
    <li class="hmenu_rss"><a href="http://energiacelestial.com/?feed=rss2">Feed</a></li>
</ul></div>

Take out that entire li that has the about in it.

suizka 11-15-2010 09: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 09:14 PM

Just what exactly are you trying to do?

suizka 11-15-2010 09: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:
Quote:

<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!

DrDOS 11-15-2010 10:30 PM

t may be generated by the PHP in which case you would have to edit one of the associated PHP files.

suizka 11-15-2010 11:00 PM

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?


All times are GMT +1. The time now is 11:52 PM.

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