Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #998353
    ansonofficial
    Participant

    Hi Support,

    http://ansonli.com/

    I have put my social media buttons in my main nav bar, but I noticed now that when I hover on my social icons, the hover color goes slightly outside the box of the social media icon. How do I fix this?

    Thanks,

    Anson

    #998354
    ansonofficial
    Participant
    This reply has been marked as private.
    #998798
    Nabeel A
    Moderator

    Hi Anson,

    Thanks for writing in! Please add the following code in your Customizer via Appearance > Customize > Custom > Edit Global CSS:

    .x-navbar .x-social-global a:hover {
        border-radius: 4px !important;
        padding: 0 !important;
        width: 17px !important;
        height: 16px !important;
    }
    
    .x-navbar .x-social-global a i {
        margin-top: -2px !important;
    }

    Let us know how this goes!

    #1005983
    ansonofficial
    Participant

    Hi again,

    It works, but it creates a white gap between the nav bar and the slider of what I believe is 2px. How do it fix that?

    Thanks,

    Anson

    #1006431
    Nico
    Moderator

    Hi There,

    Would you mind sharing us a screenshot showing the gap or where the gap is located.

    Not sure with this, but you can also try increasing the size or height of your navbar in your Customizer.

    Or add this in your customizer custom CSS:

    .home .masthead {
        min-height: 90px;
    }
    

    Once we got the screenshot and we full understand it, we’ll do our best to help you.

    Let us know how it goes.

    Thanks.

    #1006554
    ansonofficial
    Participant

    Of course, it looks like this.

    #1006558
    ansonofficial
    Participant

    This is what it looks like

    #1006634
    Paul R
    Moderator

    Hi Anson,

    You can try this code instead.

    
    header.masthead {
        background:rgb(237,53,66)!important;
    }
    
    .x-navbar .x-social-global a:hover {
        border-radius: 4px !important;
        padding: 0 !important;
        width: 17px !important;
        height: 16px !important;
    }
    
    .x-navbar .x-social-global a i {
        margin-top: -2px !important;
    }
    

    Hope that helps

    #1007837
    ansonofficial
    Participant

    It worked, thanks!

    #1008058
    Jade
    Moderator

    You’re welcome Anson.

  • <script> jQuery(function($){ $("#no-reply-998353 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>