Your address will show here +12 34 56 78

Home Forums WP ESTATE – Real Estate WordPress Theme FORUM Advanced Search Minified by Default on the homepage

This topic contains 6 replies, has 4 voices, and was last updated by  ayalamac 2 years, 10 months ago.

  • Author
    Posts
  • #36464

    Erick Akyo

    Hi!
    Can I set up the Advanced Search minimized by default in homepage?
    http://i62.tinypic.com/1epi1c.png like this

  • #37164

    Anna
    Keymaster

    Hi Erick,

    This is a development question. It requires JS modifications and you should be skilled to make the change yourself.

    Someone from the technical team will post some directions, but it can take a few more days to have the answer.

    Sorry for the delay.

    Anna

  • #37208

    crerem

    there are several things that need to be done (you need to be fluent in html and javascript)

    1. search_wrapper – in map-search-form.php : add style=”top: 112px;” or whatever value you need for correct positioning

    2.<div id=”adv-search-header-2″ >Advanced Search</div> – add class=”adv2_close” (in advanced-search-2.php)

    3.<div class=”adv-search-2 ” id=”adv-search-2″> – add style=”display: none;” (in advanced-search-2.php)

    4. modify the control.js in order to make the new behavior (and only if necessary)
    start from $(‘#adv-search-header-2’).click(function(){ at line 1298

  • #49473

    Steven McSorley

    (hides the advanced_search-2 form by default)

    Note: don’t use css display none or jquery hide().

    In control.js

    on line 5 change: var adv_search2=1;

    to

    var adv_search2=0;

    Above and before the line : $('#adv-search-header-2').click(function(){

    Add this:

    adv-search-2').fadeOut(50,function(){
                    $('#search_wrapper').animate({
                        top:112+"px"
                        },200);                      
                 }); 

    The css positioning is up to you

  • #51229

    Anna
    Keymaster

    Hi Steven,

    Thank you very much for the follow up!

    Anna

  • #100214

    Claudio
    Participant

    Uhhuuuu thank you very much.

    just a detail, the correct code is:

    $(‘#adv-search-2’).fadeOut(50,function(){
    $(‘#search_wrapper’).animate({
    top:112+”px”
    },200);
    });

  • #100787

    ayalamac
    Participant

    I make these exact changes in control.js and nothing happens. Why could be wrong?

    http://www.monroyrep.com/our-properties

You must be logged in to reply to this topic.