WordPress.org

Support

Support » Themes and Templates » Responsive » [Resolved] Change Home-Button from Text to Picture

[Resolved] Change Home-Button from Text to Picture

  • Hi all,

    the problem I have is the following: I want to change the link in the top navigation bar from text “Home” to a specific picture. I already found the right code-sequence in the theme (header.php):

    <?php wp_nav_menu(array(
       'container'       => '',
       'theme_location'  => 'header-menu')
       );
    ?>

    But I don’t know how I have to do the right changes to realize my purpose. I hope anyone can help me.

    Thanks

Viewing 1 replies (of 1 total)
  • Hi,

    I would recommend to go with the Custom Menu after that assign a class to your home item e.g.

    home-icons

    and style it like this:

    .home-icon {
        background: url(images/home-icon.png) 50% 50% no-repeat;
        width: 40px;
        text-indent: -9999px;
    }

    Thanks,
    Emil

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Change Home-Button from Text to Picture’ is closed to new replies.
Skip to toolbar