Hover Overlay for Mega Menu Items

Adds a dark overlay behind JetMenu dropdowns on hover, enhancing visual focus with a fullscreen effect.

Specifications
Hover Overlay for Mega Menu Items
5 January, 2026
  • Plugin
    • JetMenu
  • Category
    • Navigation & Mega Menu
  • Programming languages
    • CSS
    • JavaScript
Source code

Installing Instruction

  1. Copy the entire code snippet to your clipboard.
  2. You can add the snippet in one of two ways:
    1. Option A: Using a Custom Code Plugin (Recommended)
      1. Install and activate a plugin such as WPCode Lite, Code Snippets, or Simple Custom CSS and JS.
      2. Create a new snippet of the appropriate type:
        1. JavaScript snippet → paste JS without <script> tags
        2. CSS snippet → paste CSS without <style> tags
      3. Save and activate the snippet.
    2. Option B: Using Theme Files or a Custom HTML Widget
      1. Navigate to WordPress Dashboard > Appearance > Theme File Editor.
      2. Open an appropriate theme file (for example, header.php or footer.php), or add a Custom HTML widget in the desired area.
      3. Paste the code snippet:
        1. Keep <script> tags for JavaScript
        2. Keep <style> tags for CSS
      4. Save your changes.

Example Use Case

Use this snippet to improve mega menu usability by visually highlighting the active menu area with an overlay, ideal for complex navigation menus on e-commerce, corporate, or content-heavy websites.
Applicable scenarios:

  • Websites using mega menus needing improved navigation focus.
  • E-commerce stores optimizing user attention on dropdown menus.
  • Corporate and blog sites with complex menu structures.
Specifications
Hover Overlay for Mega Menu Items
5 January, 2026
  • Plugin
    • JetMenu
  • Category
    • Navigation & Mega Menu
  • Programming languages
    • CSS
    • JavaScript
Source code

Let’s build together

Have your own solution?

Came up with a great solution and want to show it to the Crocoblock community?

Request a new feature

Leave a feature request through GitHub, and our developers will consider it