• Resolved saharch

    (@saharch)


    Hello,
    We are updating some images on our website. Our theme originally had a top menu that was transparent on load, and then had a white background on scroll. We asked them to change that with additional CSS to just white due to the image we originally had. However, with the new image, we would like to go back to the transparent menu. I edited the CSS from #fff to transparent, but nothing changed. I think it may have to do with the float: none, but I’m not sure. Any help would be appreciated. Here is the CSS:

    html[data-menu=leftalign] #menu_wrapper {
        float: none;
        display: flex;
        text-align: center;
    }
    #menu_wrapper div .nav li.megamenu ul {
        max-width: 300px;
    }
    #menu_wrapper div .nav li.megamenu ul li > a {
        display: block !important;
        color: #545454;
    }
    #menu_wrapper div .nav li.megamenu ul li > a:hover {
        color: #71042c;
    }
    .home #menu_wrapper div .nav li.megamenu ul li > a {
        color: transparent;
    }
    .scroll #menu_wrapper div .nav li ul {
        background: transparent;
    }
    .scroll #menu_wrapper div .nav li.megamenu ul li > a {
        color: #545454;
    }
    .scroll #menu_wrapper div .nav li.megamenu ul li > a:hover {
        color: #71042c;
    }
    #menu_wrapper {
        position: absolute;
        width: 100% !important;
        margin-left: 0 !important;
        max-width: 1245px;
    }
    .ti-menu::before {
        font-size: 20px;
    }
    .header_style_wrapper {
        z-index: 999;
    }
    • This topic was modified 5 years, 11 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • I have checked it and find wrapper has given inline style i.e:-
    <div class=” ” style=”padding-top: 75px; margin-bottom: 418px;” id=”wrapper”>

    Please try to delete “padding top”

    And Then add this css:-

    .top_bar, html {
    background-color: transparent;
    }

    Then check if it work for you

    Thread Starter saharch

    (@saharch)

    Thank you, but I don’t see where you are finding the <div class=” ” style=”padding-top: 75px; margin-bottom: 418px;” id=”wrapper”>. Where can I access that line?

    Adding the css you suggested did make it transparent, but it stays transparent. We would like to to start as a transparent and then get a white background as you start to scroll.

    • This reply was modified 5 years, 11 months ago by saharch.
    Thread Starter saharch

    (@saharch)

    I should also add that we are using Elementor to edit the pages. I can’t get to the html code of the pages.

    Please try this:-

    .home .top_bar.scroll {background: #fff;}
    .home #wrapper {padding-top: 0px !important;}
    .home .top_bar, html {background-color: transparent;}
    .home .menu-main-menu-container a { color: #fff !important;}
    .home .top_bar.scroll .menu-main-menu-container a {color: #000 !important;}

    Thread Starter saharch

    (@saharch)

    Thank you, that did most of what we want, but there is a thin white line at the bottom of the menu. I also see that I need to upload our logo with a transparent background. /Users/red/Desktop/Screenshot 2020-08-27 at 11.27.10.png

    Thread Starter saharch

    (@saharch)

    How can I attach a screen shot?

    To remove white line Add this css

    .top_bar, html {border: 0px;}

    Thread Starter saharch

    (@saharch)

    Great, thank you so much!

    please marked it resolved. if your issue has fixed

    Thread Starter saharch

    (@saharch)

    Yes, resolved. Thanks again!

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Menu not transparent as written in CSS’ is closed to new replies.