Title: Menu &amp; Sub Menu Behind Elements
Last modified: March 7, 2019

---

# Menu & Sub Menu Behind Elements

 *  Resolved [tanielstrydom](https://wordpress.org/support/users/tanielstrydom/)
 * (@tanielstrydom)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/menu-sub-menu-behind-elements/)
 * Hi, I’m using Astra Theme with Elementor Page Builder. My home page loads a layerslider
   which sits over my sub menu items. I have the following CSS code and have set
   my Z-Index to 1. Please help!
 * .ast-page-builder-template .site-content #primary {
    z-index: 1; }
 * [@media](https://wordpress.org/support/users/media/) (min-width: 700px){
    header#
   masthead{ position: fixed; width: 100%; }}

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

 *  Plugin Author [megamenu](https://wordpress.org/support/users/megamenu/)
 * (@megamenu)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/menu-sub-menu-behind-elements/#post-11285272)
 * Hi tanielstrydom,
 * I think you must have found that in another thread from yesterday, so thanks 
   for searching the forums before posting!
 * Did you also try adding a z-index to the section that holds the menu?
 * [https://www.megamenu.com/documentation/elementor/#fix-menu-z-index](https://www.megamenu.com/documentation/elementor/#fix-menu-z-index)
 * It may also be worth trying to add a lower z-index to the section that holds 
   the slider.
 * If you are still stuck please post a link to your site so I can take a look.
 *  Thread Starter [tanielstrydom](https://wordpress.org/support/users/tanielstrydom/)
 * (@tanielstrydom)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/menu-sub-menu-behind-elements/#post-11285281)
 * Yes, I added z-index to CSS and to main-menu settings. I am using the theme’s
   menu – not elementors. My site is not live yet – I’m still working on it.
 *  Plugin Author [megamenu](https://wordpress.org/support/users/megamenu/)
 * (@megamenu)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/menu-sub-menu-behind-elements/#post-11285302)
 * Hi tanielstrydom,
 * Ok, please let me know once it is online and post a link here. I’ll need to use
   browser tools to inspect the site html and CSS to work out exactly where the 
   z-index needs to be applied.
 *  Thread Starter [tanielstrydom](https://wordpress.org/support/users/tanielstrydom/)
 * (@tanielstrydom)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/menu-sub-menu-behind-elements/#post-11285313)
 * Ok, I have made it live so you can check it quickly for me. Please let me know
   as soon as you are done.
    [https://emmediate.co.za](https://emmediate.co.za)
 *  Plugin Author [megamenu](https://wordpress.org/support/users/megamenu/)
 * (@megamenu)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/menu-sub-menu-behind-elements/#post-11285348)
 * Hi,
 * You need to use Elementor to add a z-index to the **section** that contains the
   LayerSlider shortcode:
 * [https://screencast.com/t/jlnhtbMs](https://screencast.com/t/jlnhtbMs)
 *  Thread Starter [tanielstrydom](https://wordpress.org/support/users/tanielstrydom/)
 * (@tanielstrydom)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/menu-sub-menu-behind-elements/#post-11285370)
 * Thank you! 🙂

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

The topic ‘Menu & Sub Menu Behind Elements’ is closed to new replies.

 * ![](https://ps.w.org/megamenu/assets/icon-128x128.png?rev=1489843)
 * [Max Mega Menu](https://wordpress.org/plugins/megamenu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/megamenu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/megamenu/)
 * [Active Topics](https://wordpress.org/support/plugin/megamenu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/megamenu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/megamenu/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [tanielstrydom](https://wordpress.org/support/users/tanielstrydom/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/menu-sub-menu-behind-elements/#post-11285370)
 * Status: resolved