• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2665

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

Expanding Search Box In Site Header – Genesis Sample Theme

The code in this download folder is an update to this older Javascript solution which uses pure CSS and no Javascript.

Expanding Search Form Genesis

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' ),
);

Register for full access

Related Tutorials

  • Animated Search Form In Header Right Widget – Genesis Sample Theme

Search

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems