AgentPress Top Search on Home Page

Community Forums Forums Design Tips and Tricks AgentPress Top Search on Home Page

This topic is: not resolved

This topic contains 3 replies, has 2 voices, and was last updated by  derekalvarez 1 year ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #32436

    derekalvarez
    Participant
    Post count: 47

    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?

    #33157

    derekalvarez
    Participant
    Post count: 47

    Hello?? Anybody there??

    #33319

    Jen Baumann
    Keymaster
    Post count: 315

    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 -->';
    	}	
    }

    If you need technical support for your theme please file a ticket.

    The forums are community based. Staff only monitors the forum for issues relating to the forum itself and to redirect users to where they need to go.

    #33321

    derekalvarez
    Participant
    Post count: 47

    Worked perfectly. Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.