Posted: May 7, 2015 at 9:39 am
|
Hello, What needs to be done to make the drop down menus on this page appear IN FRONT of the calendar rather than behind the calendar? |
Hello again Richard, it looks like the z-index needs to be adjusted. I tested some various values and this works: #espresso_calendar { z-index: 90; } Try adding that to your child theme’s stylesheet or through a plugin like My Custom CSS or Reaktiv CSS Builder. — |
|
|
Hi Lorenzo, That code highlights red in my CSS editor which usually indicates something is wrong. Saved it anyway and no change. |
Hi, I’m not seeing any typos so I’m not sure why it would be flagged in red font. Try this version: #espresso_calendar { z-index: 90 !important; } — |
|
|
Hi Lorenzo, It doesn’t like the #espresso_calendar thats what turns red Should I perhaps modify the calendar css file directly? It has z-index: 100; /wp-content/plugins/espresso-calendar/css/calendar.css |
Hi, Any edits to core files will be lost when you update the events calendar add-on. Can you add that line to your child theme’s stylesheet directly? — |
|
|
Hi Lorenzo, I added the line as requested without change in the results. http://www.comedyguys.com/calendar/ What now? |
Hi Richard, Your code editor might not like it when an ID is used instead of a class name. Anyway, I suggest a different approach to this: You fix the nav menu by adding this to the theme’s stylesheet: .nav-horizontal .menu-item { z-index:100; } If the above does not work for you after clearing your browser’s cache, it may help to up the specificity of the style rule, or tack on the !important declaration. |
|
|
Hi Josh, I tried that and adding !important without results. Not sure what you mean by “upping the specificity of the sytle rule” as I am not versed in CSS. What’s next? |
Hi, Try targeting the entire header: .header-sticky{ It appears to work in Safari developer tools: http://cl.ly/image/0F0b0e2Y0C0z — |
|
|
I tried all these without success. You can view the issue here: The About and FAQ menu items are long enough to see that they display behind the calendar. |
Hi Richard, The calendar has a z-index of 100 and the code Josh provided set the z-index of the nav bar to 100. Try this and see if makes a difference: .nav-horizontal .menu-item { z-index:125; } |
|
|
Hi Tony, Still no change. 🙁 |
Hi, it works in Safari: https://eventespresso.com/topic/drop-down-faq-menu-appearing-behind-calendar/ I recall from another support post that you cleared a CDN and possibly another caching service. Did you try force refreshing your web browser to load the latest CSS? — |
|
Hi Richard, The other thing to check is, are the CSS changes actually loading in your browser? Many times your browser will load a cached copy of the stylesheet. So it can help to clear your browser’s cache. |
|
|
Hi Lorenzo and Josh, I did clear the cache and CDN without change. We have the live site and a dev site exhibiting the same issue. |
Richard, What’s the name and line number of the CSS file that you’re adding the style rule to? |
|
|
Also, in Safari I am experiencing that the drop down menus are still behind the calendar, but they also cannot be clicked on when they drop down. Moving the mouse to the drop down makes it disappear. I realize that is unlikely to be Expresso related, I am just mentioning it for your awareness. |
|
Hi Richard, I am adding these to the child theme style sheet style.css |
Richard, |
|
|
Josh, sorry for the name mixup. This is driving me nuts. 🙂 |
Alright, there are actually multiple issues occurring. The header was appearing behind the calendar when you scrolled down and the menus could not be clicked. I have another line of CSS that should resolve this issue. ul#menu-main-menu-1.menu {z-index:125;} http://cl.ly/image/2k1D131V3W3t — |
|
The support post ‘Drop Down FAQ Menu Appearing Behind Calendar’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.