Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1083087

    Hi all,

    i have a small issue with my navigation.
    I changed “Home” to an image with different states (hover, active) and it works as it should, except when on the Homepage.
    May you got an idea how to fix that.

    Here is my css which I applied in QUICK CSS.

    /* Home-Icon in Navigation */
    #menu-item-890 > a {
    text-indent: -9999px;
    background: url(‘https://font-khi.hekeko.de/wp-content/uploads/2019/03/ki-home-w_50.png’) no-repeat top center;
    width: 100% !important;
    height: 75px !important;
    }

    #menu-item-890 > a:hover {
    text-indent: -9999px;
    background: url(‘https://font-khi.hekeko.de/wp-content/uploads/2019/03/ki-home-g_50.png’) no-repeat top center;
    width: 100% !important;
    height: 75px !important;
    }

    #menu-item-890 > a:active {
    text-indent: -9999px;
    background: url(‘https://font-khi.hekeko.de/wp-content/uploads/2019/03/ki-home-g_50.png’) no-repeat top center;
    width: 100% !important;
    height: 75px !important;
    }

    The Link to the website is in the private content

    #1084797

    Hey Kesselhut,

    It’s working but your image is white and the home menu item is highlighted in white on the home page. How do you want to change the behaviour?

    Best regards,
    Rikard

    #1084841

    Hey Rikard,

    i want it to be shown on the homepage in the same color, as in the :hover state.

    Greetings and thanks for the support

    #1085317

    Hi Kesselhut,

    Try to replace it with this css code:

    #header #avia-menu #menu-item-890 > a {
        text-indent: -9999px;
        background: url('https://font-khi.hekeko.de/wp-content/uploads/2019/03/ki-home-w_50.png') no-repeat top center;
        width: 100% !important;
        height: 75px !important;
    }
    
    #header #avia-menu #menu-item-890.current-menu-item > a,
    #header #avia-menu #menu-item-890 > a:hover,
    #header #avia-menu #menu-item-890 > a:active {
        text-indent: -9999px;
        background: url('https://font-khi.hekeko.de/wp-content/uploads/2019/03/ki-home-g_50.png') no-repeat top center;
        width: 100% !important;
        height: 75px !important;
    }

    Hope it helps.

    Best regards,
    Nikko

    #1085573

    Hi Nikko,

    it seems to work but the background-color is not white anymore.
    There is a small white line at the left side of the active item but is not filled?

    Any ideas?

    Thanks for the support

    #1085765

    Hi Kesselhut,

    Try to replace this code:

    #header #avia-menu #menu-item-890.current-menu-item > a,
    #header #avia-menu #menu-item-890 > a:hover,
    #header #avia-menu #menu-item-890 > a:active {
        text-indent: -9999px;
        background: url('https://font-khi.hekeko.de/wp-content/uploads/2019/03/ki-home-g_50.png') no-repeat top center;
        width: 100% !important;
        height: 75px !important;
    }

    with:

    #header #avia-menu #menu-item-890.current-menu-item > a,
    #header #avia-menu #menu-item-890 > a:hover,
    #header #avia-menu #menu-item-890 > a:active {
        text-indent: -9999px;
        background: #fff url('https://font-khi.hekeko.de/wp-content/uploads/2019/03/ki-home-g_50.png') no-repeat top center;
        width: 100% !important;
        height: 75px !important;
    }

    Best regards,
    Nikko

    #1085925

    Yeah Nikko,

    that’s it!

    Thanks for the support.
    Ticket can be closed

    Best regards,
    Henning

    #1085961

    Hi Kesselhut,

    We’re glad that we could help :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Image in Navigation’ is closed to new replies.