• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Add Search Box To Search Results Page

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Add Search Box To Search Results Page

This topic is: not resolved
  • This topic has 2 replies, 2 voices, and was last updated 11 years, 1 month ago by bumblebee.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • January 14, 2015 at 1:38 pm #137464
    bumblebee
    Member

    Hi,

    How can I add the search box to the search results page? I'd like to have a search box appear right above the archive-title area where it says "search results for whatever you searched." This way users can easily search again if their original search was unsuccessful. Any ideas or assistance would be greatly appreciated.

    January 15, 2015 at 9:46 am #137544
    Holly Bergfors
    Member

    Hi there!

    You're going to want to go into your Genesis theme folder (parent, not child theme), copy search.php, then paste it into the root of your child theme folder. Open up the child theme copy of search.php in whatever text editor you usually use for code editing then add this line of code within the genesis_do_search_title function ahead of the rest of its contents:

    echo get_search_form();

    So the function should look like this when you're done:

    function genesis_do_search_title() {
    	echo get_search_form();
    	$title = sprintf( '<div class="archive-description"><h1 class="archive-title">%s %s</h1></div>', apply_filters( 'genesis_search_title_text', __( 'Search Results for:', 'genesis' ) ), get_search_query() );
    	echo apply_filters( 'genesis_search_title_output', $title ) . "\n";
    
    }

    Save the file then test to make sure it shows up on your search results page. The styling will probably have to be tweaked a bit, but that should get you what you need.


    Need help getting your Genesis site up and running? Check out my portfolio and get in touch!

    January 16, 2015 at 3:13 pm #137708
    bumblebee
    Member

    Perfect! Thank you!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble