Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New Coder
    Join Date
    Sep 2010
    Posts
    26
    Thanks
    1
    Thanked 0 Times in 0 Posts

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

  • #2
    Regular Coder
    Join Date
    Oct 2010
    Location
    Florence, MS
    Posts
    486
    Thanks
    10
    Thanked 33 Times in 32 Posts
    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.
    Notice: If you post a problem and it gets fixed, please remember to go back and place it as solved. ;)
    I always recommend the HEAD First series of books for learning a new coding language. ^_^

  • #3
    New Coder
    Join Date
    Sep 2010
    Posts
    26
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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?

  • #4
    Regular Coder
    Join Date
    Oct 2010
    Location
    Florence, MS
    Posts
    486
    Thanks
    10
    Thanked 33 Times in 32 Posts
    Just what exactly are you trying to do?
    Notice: If you post a problem and it gets fixed, please remember to go back and place it as solved. ;)
    I always recommend the HEAD First series of books for learning a new coding language. ^_^

  • #5
    New Coder
    Join Date
    Sep 2010
    Posts
    26
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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!

  • #6
    Senior Coder
    Join Date
    Sep 2010
    Posts
    2,451
    Thanks
    17
    Thanked 275 Times in 275 Posts
    t may be generated by the PHP in which case you would have to edit one of the associated PHP files.

  • #7
    New Coder
    Join Date
    Sep 2010
    Posts
    26
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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?


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •