• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar
  • Skip to user navigation

PopWP

WordPress and Genesis Tutorials

  • Get Started
  • About
  • Archive
  • Services
  • Membership
  • My Account

Header Search in Genesis Sample

Last Updated on June 15, 2019 Favorited: 0 times

This tutorial will provide the steps to add a search icon to the right of site header in Genesis Sample.

Header Search Icon, when clicked, will show a search box covering the entire site header similar to Monochrome Pro. It also works great in devices having No Javascript Enabled.

Preview:

 When Javascript is disabled.

This tutorial can be easily implemented on any other Genesis child theme with minor tweaks.

Let’s start…

Prerequisite:

  • Enable js no-js class in body in Genesis

Adding Search Box in Genesis is pretty easy but complicated when the area is under .site-header. Here what we are going to do today

  • Adding Font Icon.
  • Adding javascript for making the search box appear inline.
  • Adding snippet in the site header to show the search form.
  • Adding CSS to customize the appearance.

STEP 1

The first step is to Enqueue Ionicons. Add this in functions.php

wp_enqueue_style(
    'ionicons', '//code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css',
    array(),
    CHILD_THEME_VERSION
);

STEP 2

A. Create a file search.js and place it under your child-theme/js/ folder and add the following script.

To view the full content, please sign up for the membership.

Already a member? Log in below or here.

 
 
Forgot Password

Related Posts

  • Pop Up Search to the right Site Header in Genesis
  • Search Form in primary menu in Genesis
  • Magazine style Singular Post Design in Genesis Sample
  • Post Page Blog Archive Template with Layouts in Genesis
  • Site Inner with container background in Genesis Sample

Categories: Genesis Tutorials, Premium Content Tags: Genesis Sample, header search, search

Primary Sidebar

Search

WPEngine WordPress Hosting, Perfected.

Hosting You are looking for?.
Perfect solution for small business to global enterprise.

Learn more

StudioPress Genesis Theme Framework

The No.1 Theme Provider.
Creative, SEO rich Theme for all niche projects.

Learn more

Categories

  • Free Content
  • Genesis Tutorials
  • Premium Content
  • Snippets
  • What's New?
  • WordPress Tutorials

Tag Cloud

Archive Background Section blog canvas menu center logo columns conditional tags CSS CSS Grid custom Customizer custom post type Custom Post Types custom template Custom Widget effect eNews Extended Featured Image front-page Genesis Genesis Sample header right hero section Image Background js layout left menu Logo menu Navigation Menu newsletter post page related posts responsive menu search search widget Shrinking Logo site header slide in-out Stylesheet Template Utility Bar Video Background widgets WordPress

Built with Genesis Framework + WordPress by Aryan Raj

  • Contact
  • FAQ
  • Disclaimer
  • Privacy Policy
  • Copyright Policy
  • Terms of Service