Sub-menu doesn't show on desktop

Hello!

First of all, I love your theme. And I am learning so much via the support pages, it is amazing :slight_smile: Thank you!

I did bump into a small problem that I can’t get fixed. My submenu does show on mobile, but on desktop only the mainmenu is visible.

Could you maybe help me?
My website is www.za-za.com

Thanks so much!

Hello there,

It appears the below code block in the main stylesheet has been modified.


#mainnav li:hover > ul {
    opacity: 1;
    padding-top: 10px;
    visibility: visible;
    left: auto;
    -webkit-transition: all 0.3s ease;
       -moz-transition: all 0.3s ease;
        -ms-transition: all 0.3s ease;
         -o-transition: all 0.3s ease;
            transition: all 0.3s ease;
}

See the original one here. In your site, it looks like this:


#mainnav li:hover > ul {
    opacity: 0;
    padding-top: 10px;
    visibility: visible;
    left: auto;
    -webkit-transition: all 0.3s ease;
       -moz-transition: all 0.3s ease;
        -ms-transition: all 0.3s ease;
         -o-transition: all 0.3s ease;
            transition: all 0.3s ease;
}

Regards,
Kharis

Hello Kharis,

Thanks for looking into that, much appreciated.
However I haven’t managed to fix it.
In my customer css I do have some code to keep the borders transparent of the submenu block.
Could this have something to do with it?

My custom css contains:

.page header.entry-header {
display: none;
}

#mainnav .sub-menu li a {
background: #fdfdf7;
border-top-color: transparent;
}

#mainnav .sub-menu li:hover > a {
color: #fdfdf7;
background: #f27c37;
}

.main-navigation ul ul li:first-of-type, .main-navigation ul ul li {
border-color: transparent;
}

thank you in advance, Kharis.

Best,

Zaza

Your custom code doesn’t relate with the trouble. To fix it without touching the main stylesheet as mentioned previously, try adding the below custom CSS code.


#mainnav li:hover > ul {
   opacity: 1;
}

Regards,
Kharis

It worked!
Thanks so much!

No problem! Just go easy on it :slight_smile:

If you enjoyed Sydney, would you mind rate our Sydney theme here:https://wordpress.org/support/view/theme-reviews/sydney#postform like some of our users did? We would highly appreciate it if you do so.

Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.

Regards,
Kharis