Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Add Home link and remove search box WordPress

  • SOLVED

How can I add a home link to my websites menu and how can I remove the search box from the menu?
[[LINK href="http://votepbsc.com"]][[/LINK]]

Answers (3)

2010-10-17

Maor Barazany answers:

If you provide the code that you have in your template it will be easier to help you...


zachitn comments:

Ok well what page


Maor Barazany comments:

header.php


zachitn comments:

I already removed the search box just need the home link for the menu




<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/11001/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'); ?>" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<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="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php //comments_popup_script(600, 600); ?>
<?php wp_head(); ?>

<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="http://info.template-help.com/files/ie6_warning/ie6_script.js"></script>
<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/drop-down-menu.js"></script>
<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/jquery00.js" charset="utf-8"></script>
<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/jquery.js"></script>
<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/imagepreloader.js"></script>
<script type="text/javascript">
var $j = jQuery.noConflict();
$j(document).ready(function(){
$j('.menu-nav li').hover(
function() {
$j(this).addClass("active");
$j(this).find('.ulwrapper').stop(false, true).slideDown();
$j(this).find('.ulwrapper .ulwrapper').stop(false, true).slideUp('fast');
},
function() {
$j(this).removeClass("active");
$j(this).find('div').stop(false, true).slideUp('fast');
}
);
$j('.ulwrapper').hover(
function() {
$j('.parent').addClass("active_tab");
},
function() {
$j('.parent').removeClass("active_tab");
}
);
});
</script>

<script type="text/javascript">
preloadImages(['<?php bloginfo('stylesheet_directory'); ?>/images/button-act.gif',
'<?php bloginfo('stylesheet_directory'); ?>/images/next-act.gif',
'<?php bloginfo('stylesheet_directory'); ?>/images/prev-act.gif',
'<?php bloginfo('stylesheet_directory'); ?>/images/bg_menu-act.gif']);
</script>


</head><body>
<div class="tail-top">
<div class="main">
<div id="header">
<div class="indent1"><a href="#">Sitemap</a> &nbsp; &nbsp; &nbsp; &nbsp;<a href="wp-admin">Login</a></div>
<div class="logo"><h1 onclick="location.href='<?php echo get_option('home'); ?>/'"><?php bloginfo('name'); ?></h1></div>
<div id="dropmenu">
<?php
wp_page_menu('show_home=0&sort_column=menu_order, post_title&link_before=&link_after=');
?>
</div>
</div>
<div id="content">
<div class="bg-cont">
<div class="container bg1">
<div class="container tail">
<div class="column-center">
<?php if (is_home()) : ?>
<!-- container for the slides -->
<div class="container"> <div class="images">
<div><span class="slider-text"> <span class="slider-text-indent">
<h3>See what we can do for your business!</h3>
<p class="indent-top-bottom">Quisque nulla. Vestibulum libero nisl, porta vel, scelerisque eget, malesuada at, neque. Vivamus eget nibh. Etiam cursus leo vel metus. Nulla facilisi. Aenean nec eros. Vestibulum ante</p>
<a class="slider-button" href="#">read more</a> </span> </span> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/img1.jpg" border="0" /></div>
<div><span class="slider-text"> <span class="slider-text-indent">
<h3>Use our time to save your money!</h3>
<p class="indent-top-bottom">Quisque nulla. Vestibulum libero nisl, porta vel, scelerisque eget, malesuada at, neque. Vivamus eget nibh. Etiam cursus leo vel metus. Nulla facilisi. Aenean nec eros. Vestibulum ante</p>
<a class="slider-button" href="#">read more</a> </span> </span> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/img2.jpg" border="0" /></div>
<div><span class="slider-text"> <span class="slider-text-indent">
<h3>Advance your business!</h3>
<p class="indent-top-bottom">Quisque nulla. Vestibulum libero nisl, porta vel, scelerisque eget, malesuada at, neque. Vivamus eget nibh. Etiam cursus leo vel metus. Nulla facilisi. Aenean nec eros. Vestibulum ante</p>
<a class="slider-button" href="#">read more</a> </span> </span> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/img3.jpg" border="0" /></div>
<div><span class="slider-text"> <span class="slider-text-indent">
<h3>Your prosperity is our goal!</h3>
<p class="indent-top-bottom">Quisque nulla. Vestibulum libero nisl, porta vel, scelerisque eget, malesuada at, neque. Vivamus eget nibh. Etiam cursus leo vel metus. Nulla facilisi. Aenean nec eros. Vestibulum ante</p>
<a class="slider-button" href="#">read more</a> </span> </span> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/img4.jpg" border="0" /></div>
<div><span class="slider-text"> <span class="slider-text-indent">
<h3>Take your benefit from our work!</h3>
<p class="indent-top-bottom">Quisque nulla. Vestibulum libero nisl, porta vel, scelerisque eget, malesuada at, neque. Vivamus eget nibh. Etiam cursus leo vel metus. Nulla facilisi. Aenean nec eros. Vestibulum ante</p>
<a class="slider-button" href="#">read more</a> </span> </span> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/img5.jpg" border="0" /></div>
</div>
<div class="slider-button-main"><button class="button-play" onclick="$(&quot;div.tabs&quot;).tabs().play();">Play</button> <button class="button-stop" onclick="$(&quot;div.tabs&quot;).tabs().stop();">Stop</button></div>
<!-- "previous slide" button -->
<p><a class="backward">prev</a></p>
<!-- "next slide" button -->
<p><a class="forward">next</a></p>
<p><!-- the tabs --></p>
<div class="tabs"><a></a> <a></a> <a></a> <a></a> <a></a></div></div>

<?php endif; ?>


Maor Barazany comments:

In the code you wrote, change this -


wp_page_menu('show_home=0&sort_column=menu_order, post_title&link_before=&link_after=');


To this :

wp_page_menu('show_home=1&sort_column=menu_order, post_title&link_before=&link_after=');


(Changed the show_home parameter from 0 (no) to 1 (yes) ).


zachitn comments:

Where is that code?


Maor Barazany comments:

Inside the code you pasted here of the head.php file , just do a search for wp_page_menu , it's somewhere in the middle of what you've pasted..

2010-10-17

Denzel Chia answers:

Menu codes are complicated. It can generated by wp_list_pages or wp_page_menu or wp_nav_menu. So you need to post your menu code here or at least tell people what theme your are using, so that people here can give you correct answer.

However a simple menu home link can be

<a href="<?php echo get_bloginfo('url');?>">Home</a>


Thanks.


zachitn comments:

theme1092

templatemonster.com

what section would those pages be under

wp-content?


Denzel Chia comments:

Find this

wp_page_menu('show_home=0&sort_column=menu_order, post_title&link_before=&link_after=');


Change show_home=0 to show_home=1

Thanks


zachitn comments:

Where would it be?


Denzel Chia comments:


I mean find the above from your header.php and Change show_home=0 to show_home=1

Thanks.

2010-10-17

Monster Coder answers:

You have to edit your theme's header.php file. it should be like
<blockquote>wp-content/themes/THEME_NAME/header.php</blockquote>

in the same file, you will get something like this:
<?php include(TEMPLATEPATH . '/searchform.php'); ?>
You can remove that to remove the search box


zachitn comments:

Ok that removed the search it wasnt <?php include(TEMPLATEPATH . '/searchform.php'); ?>
but it was something different.

I would like to award you the money but how can I add a home link to the menu

Thanks