If you’re a Genesis Framework user, you may have noticed that the responsive menu in Genesis Sample theme resides below the header. But, what if you want to relocate it to inside header so it’s aligned to the right of your site header while the site title is aligned left?
Sridhar Katkam’s Genesis Starter Child Theme which was released in 2016, has added some cool new features. In fact, these days, I use his version of Genesis Sample theme rather than the original Genesis Sample theme available on StudioPress. If you’re not aware of the modified theme, you should check it out here.
One of the major structural changes in Sridhar’s starter theme is that it uses WordPress’s default blog template rather than the blog template offered in Genesis Sample. If you’re wondering why, then you should probably read Bill’s blog post.
What I really like about theme is the Inline Mobile Responsive Hamburger menu. Therefore, I’d highly recommend using Sridhar’s Genesis Starter Child theme for your custom project if you want to do it right.
First, remove or comment out the Following Line from Your Functions.php. It should be found on Line 117
add_theme_support( ‘genesis-menus’, array( ‘primary’ => __( ‘After Header Menu’, ‘genesis-sample’ ), ‘secondary’ => __( ‘Footer Menu’, ‘genesis-sample’ ) ) );
Then, add the following code snippet in your functions.php.
Add the following code at the bottom of your CSS file. If you don’t want to make any changes in your CSS file, consider adding the code to WordPress’ Additional CSS template.
That’s it. You should now see hamburger responsive menu in all its glory. Want to see it in action? Resize your browser and see my blog.
Let me know if you have any questions.
Note: Depending on your particular theme, you may have to make slight modification in the above code to match your theme design.