Add Left Side Push Menu Widget in Genesis

This code enables you to add a left side widget area which pushes the content to the right when open.

Update : You might find this new tutorial which uses a different method easier to work with as it includes a more simple jQuery method which uses minimal code.

vertical-left-side-push-widget

In this example, the widget area is populated with a custom menu widget. The vertical menu is fixed so it always extends from the very top of the screen to the very bottom:

open

All the code for this feature is pre-installed in the Genesis Sample child theme by StudioPress.

Demo Video #

Once you install the code, add the HTML for the button anywhere you like. In this example, it was added to the header right widget however you can hook it in anywhere.

<button class="toggle-menu menu-left push-body">Menu</button>

Code Installation – From Download Folder #

To use the code in your child theme, follow these simple steps:

  1. Copy & paste the code from functions.php and paste into your child themes functions file. This code loads the 2 js files, the CSS as well as registering and hooking in the widget area.
  2. Copy and paste the push-widget folder into your child themes root directory. Thats all there is to it!

Here’s the code for logged in members:

Related Functionality

Was This Tutorial Helpful?

Free

$0

Access only to all free tutorials per month.



Monthly

$75

Access to 10 premium tutorials per month.


Tutorial Request


Includes code guarantee and coding support.

Yearly

$500

Access to 15 premium tutorials per month.


Monthly Tutorial Request


Includes code guarantee and priority coding support.