• 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

AgentPress Top Search on Home 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 › AgentPress Top Search on Home Page

This topic is: not resolved

Tagged: Agentpress, homepage, top serach

  • This topic has 3 replies, 2 voices, and was last updated 12 years, 7 months ago by derekalvarez.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • April 1, 2013 at 9:09 am #32436
    derekalvarez
    Member

    Website url is...

    http://www.tucsonmls.net/

    How do I make it so the Top Search Widget shows up on the home page in addition to the other home page widgets?

    April 4, 2013 at 1:29 pm #33157
    derekalvarez
    Member

    Hello?? Anybody there??

    April 5, 2013 at 10:35 am #33319
    Jen Baumann
    Participant

    Hi. In your functions.php file find this:

    /** Add top search after header */
    add_action( 'genesis_after_header', 'agentpress_top_search' );
    /**
     * Add top search widget area on Genesis after header hook
     *
     */
    function agentpress_top_search() {
    	if ( !is_front_page() && is_active_sidebar( 'top-search' ) ) {
    		echo '<div class="top-search">';
    		dynamic_sidebar( 'top-search' );
    		echo '</div><!-- end .top-search -->';
    	}	
    }

    Change it to

    /** Add top search after header */
    add_action( 'genesis_after_header', 'agentpress_top_search' );
    /**
     * Add top search widget area on Genesis after header hook
     *
     */
    function agentpress_top_search() {
    	if ( is_active_sidebar( 'top-search' ) ) {
    		echo '<div class="top-search">';
    		dynamic_sidebar( 'top-search' );
    		echo '</div><!-- end .top-search -->';
    	}	
    }
    April 5, 2013 at 10:44 am #33321
    derekalvarez
    Member

    Worked perfectly. Thank you!

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 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

© 2025 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