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

WP SITES

2662

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

Add Search Box To Menu

This code adds the WordPress search box to either your primary or secondary navigation menu.

The code works in any theme however you may need to change the class in the code if not using in child themes running Genesis.

This solution is provided for members only and includes installation of the code for absolute beginners who are not comfortable with using PHP code.

Once you are logged in, copy the code below and paste it to the end of your child themes functions.php file using a code editor like Notepad++ for Windows or Text Wrangler for Mac.

Another option is to use File Manager in cPanel.

Register for full access

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