• 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 Revolution Pro

Last Updated on May 28, 2019 Favorited: 1 times

This tutorial provides the steps to add a header search option in revolution pro theme similar to what we have Header search in Genesis Sample based on Monochrome Pro child theme.

Tested with js and without js (no-js) in browser.

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

  1. Adding icon pack Ionicons.
  2. Adding javascript for making the search box appear inline.
  3. Adding snippet in the site header to show the search widget.
  4. Adding CSS files to the stylesheet.

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.

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

Already a member? Log in below or here.

 
 
Forgot Password

Related Posts

  • Expanding Search box in menu-item list in Genesis
  • Pop Up Search to the right Site Header in Genesis
  • Search Form in primary menu in Genesis
  • Custom Widget area having Categories and search on Post Page in Genesis
  • Custom hero title on Search results Page in Genesis

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

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