WordPress.org

Ready to get started?Download WordPress

Forums

Changing the home button! (9 posts)

  1. hallstreet
    Member
    Posted 3 years ago #

    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

  2. Samuel B
    moderator
    Posted 3 years ago #

    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

  3. hallstreet
    Member
    Posted 3 years ago #

    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.

  4. Samuel B
    moderator
    Posted 3 years ago #

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

  5. Tara
    Member
    Posted 3 years ago #

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

    Admin - Appearance - Menus

  6. hallstreet
    Member
    Posted 3 years ago #

    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

  7. Samuel B
    moderator
    Posted 3 years ago #

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

  8. hanssen
    Member
    Posted 3 years ago #

    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-------
  9. hallstreet
    Member
    Posted 3 years ago #

    thanks again guys,

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

    Hanssen i will have a look at that.

    cheers

Topic Closed

This topic has been closed to new replies.

About this Topic