WordPress.org

Support

Support » Themes and Templates » Changing the home button!

Changing the home button!

  • hallstreet

    @hallstreet

    Hi all,

    I have searched the forums and have seen a few people ask this question, i have the twenty ten theme installed and want to change the word “home” to “news” i have searched the header.php and page.php and just cant figure out where to change it.

    any help would be great.

    thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • look in theme’s header.php for

    <a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
    					</span>

    change the home_url to what you want
    back up 1st

    hallstreet

    @hallstreet

    Thanks Samuel,

    I have searched is but no luck the only bit in the code that relates to home is the following.

    // Add the blog description for the home/front page.
    $site_description = get_bloginfo( ‘description’, ‘display’ );
    if ( $site_description && ( is_home() || is_front_page() ) )
    echo ” | $site_description”;

    and
    <div id=”branding” role=”banner”>
    <?php $heading_tag = ( is_home() || is_front_page() ) ? ‘h1’ : ‘div’; ?>
    <<?php echo $heading_tag; ?> id=”site-title”>
    <span>

    thanks for the help.

    it’s after the <body> tag
    should be right after the bit you posted

    Moderator t-p

    @t-p

    Volunteer Moderator

    The Twenty Ten theme supports custom menus where you can change or add in only the items you want.

    Admin – Appearance – Menus

    hallstreet

    @hallstreet

    Thanks again guys,

    Samuel the code you have shown me is not in the header file of mine?

    t-p yes the custom menu works, but then how do i make drop downs?
    i have the wp-commerce plugin installed and it automatically puts a drop down in the menu.

    thanks

    put your header.php at pastebin.com and come back with link

    hanssen

    @hanssen

    don’t know about the wp-commerce plugin.. but you create drop down menus while moving the sub-link slightly to the right under the category you want it to have.

    so that Admin – Appearance – Menus looks like this on the right side there..

    ----------category 1--------
       ------------sub-link-----------
       ------------sub-link-----------
    -----------category 2-------

    hallstreet

    @hallstreet

    thanks again guys,

    Samuel here is the link: http://pastebin.com/wb0b7YEG

    Hanssen i will have a look at that.

    cheers

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Changing the home button!’ is closed to new replies.
Skip to toolbar