Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #662718

    I am trying to create a top menu bar that is completely fixed. One bar with the logo, top menu, social icons and mobile menu icon.

    I have them all on the same line with CSS but, the logo and menu icon are ‘fading out’ when I scroll down? Is there a way to stop the fade out?

    Also I just noticed the links for the Mobile Menu and logo are linking below the actual images? Any ideas.

    Thanks,
    Lane

    #663782

    Hey!

    Try adding this code to the Quick CSS:

    .header_bg{
    opacity: 1 !important;
    }

    Cheers! 
    Josue

    #664072

    Thanks Josue but, that did not seem to work.
    When I scroll down the logo and the mobile menu fade out? I’m thinking maybe the sub menu background is fading in overtop of them.. Maybe it just can’t be done..

    #664247

    Hey!

    Try with this instead:

    #top #header_meta {
        background: transparent;
    }
    
    #header_main {
        background: black;
    }
    
    .av_header_transparency #header_main {
        background: transparent;
    }

    Cheers! 
    Josue

    #664610

    Josue,
    That worked it looks great!! But, I am still having troubling getting everything to link? My logo and mobile menu are not clickable I think maybe they are under another layer or something. Any ideas? I know this is a customization beyond the normal install. I’m really stuck and would be willing to pay extra for this help.

    Thanks so much!
    * I did just purchase 3 more licenses for Enfold it is the BEST theme I have ever used!

    #664771

    Hey!

    Try adding this code to the Quick CSS:

    #header_meta {
        width: 40%;
        transform: translateX(85%);
    }
    
    #avia2-menu{
        width: auto !important;
    }

    Cheers! 
    Josue

    #665337

    Josue,
    Thanks so much I can see what you are trying to do but, it’s not working just right. I put a blue background on the #header_meta and you can see the problem. Specifically when I adjust the screen size things run together and overlap. I really need that menu to be centered as well. Any ideas?
    Thanks,
    Lane

    #666058

    Hi,

    You have the below code in custom.css i think

    @media only screen and (min-width: 768px) {
    #header_meta {
        position: fixed;
        top: 0;
        /* width: 40% !important; */
        transform: translateX(50%);
        height: 35px !important;
        border-bottom: none !important;
        background-color: #055CC2 !important;
        padding: 0px !important;
    }}

    Change that to

    @media only screen and (min-width: 768px) {
    #header_meta {
        position: fixed;
        top: 0;
        /* width: 40% !important; */
        transform: translateX(50%);
        height: 35px !important;
        border-bottom: none !important;
        background-color: #055CC2 !important;
        padding: 0px !important;
    }}

    basically remove the width 40% so it will automatically take the width of the content and transform it by 50%.

    Best regards,
    Vinay

    #666237

    Vinay,
    Thanks for the help! It’s almost working so close.. I just can’t seem to get the links to center. I need it centered with the content below. If you look on a wide screen it is positioned next to the logo not in the center. I’ve tried margin – text align ?? Any idea? Thanks so much!

    #667512

    Hi,

    Please adjust the code:

    #header_meta {
        position: fixed;
        top: 0;
        transform: translateX(-50%);
        height: 35px !important;
        border-bottom: none !important;
        background-color: #2ED64A !important;
        padding: 0px !important;
        margin-left: 5% !important;
        text-align: center !important;
        float: none !important;
        left: 50%;
    }

    We set the translateX property to -50% then added the “left” property.

    Best regards,
    Ismael

    #670877

    That did seem to fix it. Thanks so much for all the help!

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Fixed Top Menu Bar’ is closed to new replies.