Submenu in a transparent split menu

Hi,
I have a problem with the submenu in a split menu (transparent). 
By theme options, I can set only one color for the submenu and this results so ugly in the homepage as you can see by this screenshot : https://i.postimg.cc/Gp0pMtN1/HOME_SUB-_MENU.png

However, when the sticky menu is in action even the submenu is ok as shown here : https://i.postimg.cc/wT7TgDYp/sticky_menu_submenu.png

So, is it possible to deactivate the submenu only for the homepage or set it transparent?

Waiting for your kind reply,

Regards

Comments

  • Hi,
    Please use this code, it will fix the height issue too.

    @media(min-width:1240px){
    #Top_bar:not(.is-sticky) .sub-menu{
    top:105px !important;
    }

    #Top_bar .sub-menu{
    background:transparent !important;
    }

    #Top_bar:not(.is-sticky) .sub-menu .sub-menu{
    top:0 !important;
    }
    }
    If this won't work, please send me a link to your website.

    Thanks
  • Thank you for your reply!
    Your code works, I made just a small integration on this part 

        #Top_bar:not(.is-sticky) .sub-menu{
            background:transparent !important;
            }
    to show the submenu in green, instead transparent, on the sticky menu, but a problem persists.

    As you can see by this screenshot  https://ibb.co/gackg9
    when you are on any other pages except the homepage, the submenu is still transparent (like in the homepage), but in these pages it should be green, because the page's background is white and it becomes impossible to see.

    The header and topbar are green, differently from the homepage (transparent), because I'm using this custom code

    body:not(.home) #Header #Top_bar {
      background-color:#5d7975 !important;
    }

    Thank you so much for your help!

    Waiting for your kind reply,
    Regards
  • If you want to have this modification only on home page, please
    on your main page, please inspect it and look for ID of your page.

    Then, add before every CSS line this code:
    body.page-id-(if-of-page) rest of code.

    For example:
    body.page-id-172 #Top_bar .sub-menu{(...)}
    Cheers.
  • Thank you so much! Now it works perfectly!
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.