Duplicate Item on Menu
-
Hi there
I have an interesting question and hope I am not at the wrong forum to ask it. Could someone please help me sort this out as I am becoming quite frustrated 🙂
I have set up my Site via WordPress with a Static Front page. I am not using it as a blog as such. It is working perfectly after many weeks of trial and error as this is all totally new to me. At the moment I have a “HOME” tab and a “Welcome” tab on my menu. They both point to my front page which is static. Therefore one of them must go. If I unpublish the “Welcome” page it dissapears from my menu and everything works fine. However this is in Firefox. When I look at my site in IE it tells me there is nothing to display. (Firefox is probably reading from the cache). If I go to my Pages admin area there is no Page for “Home” so am not sure at all what to do to fix this. I want to get rid of “Welcome” on the menu but still see the page when “HOME” is pressed. I am using the Mono Lab Piano Black Template for this site. Any help will be appreciated.
Thanks
gary
-
I would just go in header.php and find
<ul class="menu"> <li class="page_item first_menu"><a href="http://www.thegapmedia.com/">HOME</a></li>
It wont look exactly like that, but something similar. Just delete the Home link and your set.
<li class="page_item first_menu"><a href="http://www.thegapmedia.com/">HOME</a></li>
Hi there wpbum
Thanks for this. Can’t find that portion or one that looks like it though. This is my header.php file. Can you see from this what I need to change?
[large block of code moderated – please use pastebin.com for future pastes]
Id try to delete this out of there.
<?php _e('HOME','piano-black'); ?>
Also I would edit your last post and remove all that code. Not supposed to paste that much code so I will paste what is needed below here in case that fix doesnt work. Use the Code tag also when pasting code so it will be pretty like mine.
<ul class="menu"> <li class="<?php if (!is_paged() && is_home()) { ?>current_page_item<?php } else { ?>page_item<?php } ?>">/"><?php _e('HOME','piano-black'); ?> <?php if($options['header_menu_type'] == 'pages') { wp_list_pages('sort_column=menu_order&depth=0&title_li=&exclude=' . $options['exclude_pages']); } else { wp_list_categories('depth=0&title_li=&exclude=' . $options['exclude_category']); } ?> <?php }; ?> <div id="pngfix-left"></div> </div>
Howdy
Nope that didn’t work. All it did was remove the word “HOME” fromthe menu. Left the background. So i copied and pasted the original php I sent you (which I will edit in the post) and now it’s messed up the header even more lol. Have a look at it. The RSS icon is meant to be right to the right hand side and the SEARCH option to the left of it (RSS). What do I dooooooo 🙂
Thanksfor your help
Copy and paste my last post in there where it should go to see if it fixes it.
Since the first didnt work I would try the below to see if it gives you what you want.
<ul class="menu"> wp_list_pages('sort_column=menu_order&depth=0&title_li=&exclude=' . $options['exclude_pages']); <div id="pngfix-left"></div> </div>
Hi there again
Thanks for your patience and your help. The menu is now correct except for a small black portion just to the left of ‘Welcome’. Any idea how I would get rid of it so that the menu looks correct 🙂 Am still working on the search and rss
Where is it supposed to go? Cant you reinstall the theme and then make those changes again?
I can help you move it but Im not sure what all you edited and where exactly it goes.
If there is a demo of this theme somewhere else it would be helpful.
Thank you so much for all the help 🙂
When I woke up this morning one of my first thoughts was to re-install the theme and then mod from there again knowing what I now know – then I saw your post which said the same thing. I did it and BINGO!!!! all is well 🙂
Thank you again. I have a few other questions like why won’t my reCaptcha work even though it is installed and acivated but will fish around and try and learm by solving it myself before I ask on the forum.
All the best
- The topic ‘Duplicate Item on Menu’ is closed to new replies.