I want to set my Static Home page as my home page.I created my static home page and after making it appear as the front page in Reading settings in wordpres,I am seeing 2 Home tabs appear in the Navbar.It looks very ugly. I tried putting that Home tab under parent Privacy policy,but still it looks ugly as there is an arrow pointing towards the home page under privacy policy. Can someone tell me how do I remove 2 home page tabs from the Navbar Menu,thanks. Help needed.
if you give me the link (or pm it to me) i can help out in two seconds. i'm assuming you are using a theme that has home pre installed on the page. you'll have to remove it from your header.php file.
1). Backup your theme files by renaming it, or copy it to your computer. 2). Modify wp_list_pages. Here is a video tutorial that might help Let me know if this helps.
Is there any code or anything like that which I need to remove to get this 2 homes removed.I changed the order of the page,now my 2nd home has shifted to 2n position from 4th position from the NavMenu.
Did you follow the video correctly? by ordering page according ID will enable you having just one "home" page in the navmenu and you can have it as you like. If you use free theme, let me know the name of the free theme, or paste your header.php file here.
Yes I saw video and in that she talks about changing the nav tab.But I dont have any nav tab in my header.php file I am using Panorama Theme by Themocracy.
<!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 bloginfo('name'); ?> <?php wp_title(); ?></title> <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/style.css" type="text/css" media="screen" /> <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php echo ap_rssLink(); ?>" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <style type="text/css" media="screen"> @import url("<?php bloginfo('template_directory'); ?>/<?php ap_layout(); ?>col.css"); #headerimage{ <?php echo ap_headerImage(); ?> } a{ color: <?php echo ap_linkColour(); ?>; } a:hover{ color: <?php echo ap_hoverColour(); ?>; } <?php if (get_option('thread_comments') == 1){ ?> ol.commentlist li div.reply { background:#ddd; border:1px solid #aaa; padding:2px 10px; text-align:center; width:55px; -moz-border-radius: 3px; -khtml-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; } ol.commentlist li div.reply:hover { background:#f3f3f3; border:1px solid #aaa; } <?php } ?> </style> <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/scripts/utils.js"></script> <?php $ap_horizmenu_url = get_bloginfo('template_directory') . '/scripts/horizmenu.js'; if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); wp_enqueue_script('jquery'); wp_enqueue_script('horizmenu', $ap_horizmenu_url, 'jquery'); wp_localize_script( 'horizmenu', 'horizmenuSettings', array( 'ap_baseurl' => get_bloginfo('template_directory') )); wp_head(); ?> </head> <body> <div id="wrapper"> <div id="header"> <div id="surheader"> <p><?php echo ap_twitterLink(); ?> <img style="vertical-align:-3px;" alt="RSS" src="<?php bloginfo('template_directory'); ?>/styles/<?php them_activeStyleDir(); ?>/feed-icon-16x16.gif" height="16" width="16" /> <a href="<?php echo ap_rssLink(); ?>"><?php _e('Entries RSS','panorama'); ?></a> | <a href="<?php bloginfo('comments_rss2_url'); ?>"><?php _e('Comments RSS','panorama'); ?></a></p> </div> <form method="get" id="searchform" action="<?php bloginfo('home'); ?>"> <div id="search"> <input type="text" onfocus="doClear(this)" value="Search..." name="s" id="s" /> <input name="" class="searchsubmit" type="image" src="<?php bloginfo('template_directory'); ?>/styles/<?php them_activeStyleDir(); ?>/search_icon.gif" value="Go" /> </div> </form> <?php ap_logo(); ?> </div> <div id="container"> <div id="headerimage"></div> <div id="topmenu"> <div id="tabs" class="horizmenu"> <ul> <?php if (get_option('ap_includeHome') == 0){ ?> <li class="<?php if (((is_home()) && !(is_paged())) or (is_archive()) or (is_single()) or (is_paged()) or (is_search())) { ?>current_page_item<?php } else { ?>page_item<?php } ?>"><a href="<?php echo get_option('home'); ?>/"><?php _e('Home') ; ?></a></li> <?php } ?> <?php ap_buildMenu(); ?> </ul> </div> </div>
Is the one Home link static in the theme? Additionally, to list your other pages in the nav, do you have wp_list_pages? If so, use an "exclude" parameter for wp_list_pages.
it's this line on your header.php file <li class="<?php if (((is_home()) && !(is_paged())) or (is_archive()) or (is_single()) or (is_paged()) or (is_search())) { ?>current_page_item<?php } else { ?>page_item<?php } ?>"><a href="<?php echo get_option('home'); ?>/"><?php _e('Home') ; ?></a></li> remove this... <a href="<?php echo get_option('home'); ?>/"><?php _e('Home') ; ?></a> should work.