One of my pet peeves with Oxygen is its lightbox-style mobile menu implementation which does not show sub menus. Being a Genesis fan, I am used to its simple-yet-complete accessible mobile menu (demo).
So I spent this weekend going through the code in parent Genesis theme, Genesis Sample child theme, and Oxygen.
Below are the instructions to set up the header from the above demo site in Oxygen:
Install and activate Oxygen Responsive Menu plugin.
Go to Appearance > Menus and create a new menu if there isn’t one already.
A Menu with the name of
Main Menu is preferred but is not mandatory.
Edit your Main Catch All Template in Oxygen editor that has (or is going to have) sitewide header and footer with an Inner Content element in between.
a) Add a Section and move it above all other elements.
Set the Tag to
Advanced > Size & Spacing > Container Padding: 0 for top and bottom.
b) Add a Div inside the Section.
Set Width to 100%.
Advanced > Size & Spacing > Layout > Display: block.
c) There is probably already a Header (typically, Header Builder element) present. If so, duplicate the Link Wrapper element that wraps the logo in it. Drag the new duplicated element into the Div created in the earlier step.
If not, select the Div from the earlier step and add a Link Wrapper element linking to your site’s homepage with your logo using an Image element inside it.
d) At this time you should be done with your old header and you may delete it.
e) Add a Shortcode element inside the Div below the Link Wrapper.
Paste this shortcode:
If the name of the Menu you want to show is named anything other than
Main Menu, use this shortcode instead:
[oxygen-responsive-menu menu="My Menu"] where
My Menu is the name of your WordPress menu.
Check the frontend of your site to see the menu in action.
To make any changes to the menu’s appearance, edit the css file inside the plugin.
genesis-sample/functions.php and genesis-sample/style.css.
Please log in again. The login page will open in a new tab. After logging in you can close it and return to this page.