WordPress.org

Ready to get started?Download WordPress

Forums

Responsive
[resolved] Change Home-Button from Text to Picture (2 posts)

  1. Josef Seidl
    Member
    Posted 1 year ago #

    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

  2. Emil Uzelac
    Theme Review Admin
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.