Theme Integration
Ruby Mega Menu connects to your theme in one of two ways: automatically via your theme's menu locations (classic themes), or via shortcode (Full Site Editing themes).
Popular Classic themes — menu locations
Most WordPress themes register one or more menu locations — named slots like "Primary Menu" or "Header Menu" where a menu can appear. Ruby Mega Menu auto-detects these locations.
-
Open Ruby Mega Menu → Settings in the admin sidebar.
-
Scroll to the Integration section. You'll see a list of every menu location your active theme has registered.
Figure 1 Ruby Mega Menu auto-detects your theme's menu locations. -
Check the location(s) where you want Ruby Mega Menu to appear, then click Save Settings.
-
Visit your site's front end. Your theme's default menu will be replaced with Ruby Mega Menu in the selected locations.
If you don't see menu locations:
If you are using popular themes (i.e. Avada, The7, etc.), but you still don't see menu locations, follow the instructions below:
-
Open Appearance → Menus in the Wordpress admin sidebar.
-
Create a new menu location.
- (1) Name it as you want (i.e. My New Menu).
- (2) Select "Main Navigation", or your theme's specific Main Navigation name from the list.
- (3) and Save it.
Figure 2 Creating menu location. -
Once you click Save Menu, go to Appearance → Menus in the Wordpress admin sidebar. And you will see the menu locations. Select "Main Navigation" from the list and Save:
Figure 3 Ruby Mega Menu auto-detects your theme's menu locations. -
Visit your site's front end. Your theme's default menu will be replaced with Ruby Mega Menu in the selected locations.
Full Site Editing themes — shortcode
FSE themes (like Twenty Twenty-Four, Twenty Twenty-Five) don't use traditional menu locations. For these themes, use the [rubymm_rubymenu] shortcode.
-
In your WordPress admin, go to Appearance → Editor to open the Site Editor.
-
Navigate to the Header template part (or wherever you want the menu to appear).
-
Click: Edit "Header".
-
DELETE EVERYTHING inside the header to prepare Header Pattern for the [rubymm_rubymenu] shortcode:
Figure 3 Delete EVERYTHING inside the header part until you see this image. - 1. Delete EVERYTHING inside the block first.
- 2. Click (plus) icon to Add a block.
- 3. Search "html".
- 4. Click "Custom HTML":
-
Inside the Custom HTML block, paste:
[rubymm_rubymenu]
Figure 4 Adding [rubymm_rubymenu] shortcode as a Custom HTML block. -
Click Save in the Site Editor. The menu now appears wherever you placed the shortcode.
<p> and <br> tags into shortcode output by default.
The Custom HTML block bypasses this filter.
Menu dimensions
Regardless of which integration method you use, menu dimensions are controlled from the settings panel:
| Setting | Description | Default |
|---|---|---|
| Menu Width | Total width of the menu bar in pixels | 980px |
| Menu Height | Height of the top-level menu bar (40–120px) | 50px |
| Full Width | Makes the menu span the entire screen width | Off |
| Transparent Background | Removes the menu's background for overlay use | Off |
See the Settings Reference for the complete list.