AGENTPRESS – Top Search Widget

Community Forums Forums Design Tips and Tricks AGENTPRESS – Top Search Widget

This topic is: not resolved

This topic contains 7 replies, has 2 voices, and was last updated by  Anita 11 months, 1 week ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #61982

    iconitrax
    Participant
    Post count: 43

    Hello,

    I have a site running on delicious theme bu i like to be able to incorporate the Top Search Widget option from AGENTPRESS theme, is that doable? any help is appreciated.

    Thank you

    #62259

    Anita
    Participant
    Post count: 7376

    Please share a link to your site so we can take a look.


    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me! | Plus Me!
    When asking for help, please provide a link or screen shot showing your problem!

    #62352

    iconitrax
    Participant
    Post count: 43

    Hello,

    crestico.com

    Thank you

    #62368

    Anita
    Participant
    Post count: 7376

    If you have the Agentpress theme, you can copy over the code from there into your theme and then customize it from there. You need to register a new widget area and also grab the CSS.


    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me! | Plus Me!
    When asking for help, please provide a link or screen shot showing your problem!

    #63042

    iconitrax
    Participant
    Post count: 43

    Thanks for your email. i do have a copy of the AGENTPRESS, can you help me/tell me where and how can i

    1) find the code for the widget area
    2) register the new widget are on my site

    Thank you

    #63043

    Anita
    Participant
    Post count: 7376

    Register the widget first by opening up the Agentpress theme’s functions.php file. Scroll to the bottom and you should see them there. Copy whichever ones you want over to your theme’s functions.php. Then open up the Style.css file in the Agentpress theme and look for the CSS that goes with the widget area you copied over. Copy that information over to your theme’s style sheet.


    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me! | Plus Me!
    When asking for help, please provide a link or screen shot showing your problem!

    #63075

    iconitrax
    Participant
    Post count: 43

    so add this code in my function.php

    /** 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 –>’;
    }
    }

    and add this code into my style.php

    * Top Search

    /* Top Search
    ———————————————————— */

    .top-search {
    -moz-box-shadow: 0 1px 3px #000;
    -webkit-box-shadow: 0 1px 3px #000;
    background-color: #ddd;
    box-shadow: 0 1px 3px #000;
    clear: both;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 20px 10px;
    width: 920px;
    }

    #63082

    Anita
    Participant
    Post count: 7376

    Yes, but keep in mind, if it doesn’t work and you’ve updated to 2.0, the hooks might have changed. But try it out.


    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me! | Plus Me!
    When asking for help, please provide a link or screen shot showing your problem!

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

You must be logged in to reply to this topic.