Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-15-2010, 08:26 PM   PM User | #1
suizka
New Coder

 
Join Date: Sep 2010
Posts: 26
Thanks: 1
Thanked 0 Times in 0 Posts
suizka is an unknown quantity at this point
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">
suizka is offline   Reply With Quote
Old 11-15-2010, 08:50 PM   PM User | #2
Chris Hick
Regular Coder

 
Join Date: Oct 2010
Location: Florence, MS
Posts: 476
Thanks: 10
Thanked 33 Times in 32 Posts
Chris Hick is an unknown quantity at this point
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. ^_^
Chris Hick is offline   Reply With Quote
Old 11-15-2010, 09:01 PM   PM User | #3
suizka
New Coder

 
Join Date: Sep 2010
Posts: 26
Thanks: 1
Thanked 0 Times in 0 Posts
suizka is an unknown quantity at this point
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?
suizka is offline   Reply With Quote
Old 11-15-2010, 09:14 PM   PM User | #4
Chris Hick
Regular Coder

 
Join Date: Oct 2010
Location: Florence, MS
Posts: 476
Thanks: 10
Thanked 33 Times in 32 Posts
Chris Hick is an unknown quantity at this point
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. ^_^
Chris Hick is offline   Reply With Quote
Old 11-15-2010, 09:39 PM   PM User | #5
suizka
New Coder

 
Join Date: Sep 2010
Posts: 26
Thanks: 1
Thanked 0 Times in 0 Posts
suizka is an unknown quantity at this point
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!
suizka is offline   Reply With Quote
Old 11-15-2010, 10:30 PM   PM User | #6
DrDOS
Senior Coder

 
Join Date: Sep 2010
Posts: 1,155
Thanks: 10
Thanked 148 Times in 148 Posts
DrDOS is infamous around these parts
t may be generated by the PHP in which case you would have to edit one of the associated PHP files.
DrDOS is online now   Reply With Quote
Old 11-15-2010, 11:00 PM   PM User | #7
suizka
New Coder

 
Join Date: Sep 2010
Posts: 26
Thanks: 1
Thanked 0 Times in 0 Posts
suizka is an unknown quantity at this point
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?
suizka is offline   Reply With Quote
Reply

Bookmarks

Tags
navigation, page, remove

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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


All times are GMT +1. The time now is 08:21 PM.


Advertisement
Log in to turn off these ads.