The solution uses the genesis_header_right hook to execute the WordPress search function within the site-header div of the Genesis Sample child theme.
It also includes the code to add back the primary nav menu using the genesis_after_header hook.
Watch the following demo video to see how it works :
Demo Video #
Shows the custom search form expanding in the header right hook position in the Genesis Sample child theme by StudioPress.
Can be positioned using any Genesis or WordPress hook.
Code Installation – From Download Folder #
There’s 4 steps :
Step 1 – In config > menus.php, change the name of the Header Menu to After header Menu like this :
return array( 'primary' => __( 'After Header Menu', 'genesis-sample' ), 'secondary' => __( 'Footer Menu', 'genesis-sample' ), );