Marcin Budzy
Marcin Budzy

Reputation: 3

Submenu in Twenty 24 Wordpess theme hides below gallery (Responsive lightbox and gallery) (Wordpress)

I got problem on (Wordpress) site: https://srv68534.seohost.com.pl/galerie/

When clicking "Test submenu", submenu is under gallery. But when I add higher z-index for submenu i additional css then submenu title is visible over zoomed (clicked) image.

Don't know is this problem with this plugin or submenu. And what should I change ?

(Twenty 24 is child theme) plugin:

I try: z-index: 999999999!important; position: absolute;

for submenu element.

What should i change to correctly show submenu over gallery and zoomed (clicked) image over all menu titles ?

Upvotes: 0

Views: 26

Answers (1)

hedfol
hedfol

Reputation: 1512

The z-index value of 3 appears to be sufficient to keep a submenu above the gallery items.

.wp-block-navigation .wp-block-navigation-item.has-child ul.wp-block-navigation-submenu {
  z-index: 3;
}

You can increase it as a precaution, but do not exceed 9000, or it will overlap the zoomed image.

Upvotes: 0

Related Questions