Your address will show here +12 34 56 78

Home Forums WP ESTATE – Real Estate WordPress Theme FORUM Advaced search mobile code

This topic contains 8 replies, has 2 voices, and was last updated by  Samuel-lilith 3 years, 3 months ago.

  • Author
    Posts
  • #40974

    Samuel-lilith

    Hello, i try to add advaced (custom) search mobile code for Homepage,
    But “cd-drop” dropdownmenu dosen’t works… Can you help me, please?

    <div id="advanced_search_map_button_mobile" style="display:none;">
         Расширенный поиск</div>
    <div class="adv-search-mobile" id="adv-search-mobile">
    <div id="closeadvancedmobile"></div>    
     <form role="search" method="post" action="http://alushta-rest.ru/?page_id=5">
         <strong>   ???????????????????????????????????????????????????????????????????????????????</strong>
                                   
                               <div class="adv_search_internal ">
                                    <input type="number" max="15" min="1" id="rooms" name="Спальных-мест" placeholder="Спальных мест" class="advanced_select">
                              </div>
                          
            <input name="submit" type="submit" class="btn vernil small mobilesubmit" id="advanced_submit_2" value="Search">
    
        </form>   
    
    </div>
  • #41480

    Anna
    Keymaster

    Hello!

    This is a sensitive change. I don’t know if a copy/paste does the trick. I asked my colleagues to look at your request and if there is a quick solution, they will post here.

    Thank you
    Anna

  • #41848

    Samuel-lilith

    May be you just show me the part of code on the “advanced results” template page? Sure if it’s so difficult to find simle way for include for custom pages…
    Thank you

  • #41849

    Anna
    Keymaster

    Hi Samuel,

    It’s been a busy week and the developers haven’t had the chance to look at this.

    We do have a shortcode that you can use in Advanced Search page – if that is what you wish to have – http://help.wpestatetheme.org/#space

    And if you wish, you can style this advanced search. This is what I would recommend to do.

    The Mobile Advanced Search – should be kept just for mobile to be honest because if you modify it for web, it may not work on mobile. Just an idea.

    Hope this helps.

    Thank you
    Anna

  • #41858

    Samuel-lilith

    If i try to use advanced search shortcode with this parameters, dropdown menu don’t work… But i need to adv. mobile search, because i have allready search form on slider home page…

    <div class="adv-search-mobile" id="adv-search-mobile">
    <div id="closeadvancedmobile"></div>    
     [advanced_search]
    </div>

    Thank you.

  • #41869

    Anna
    Keymaster

    Hi Samuel

    Can I also see a link please? To see what it’s not working?

    Thanks
    Anna

  • #41877

    Samuel-lilith
  • #41918

    crerem

    Hello

    the drop down is made via a javascript code called dropdown .This transform a “select”
    element into this “nice” dropdown

    in control.js there is this code
    $( ‘#advanced_city_2_mobile’ ).dropdown({
    gutter : 40,
    stack : false
    });

    this enable the the dropdown in this “nice” format

    To achieve this result you need to add a select with the id of advanced_city_2_mobile if is for city. if you want a new name add in html the select with your custom_id

    and in control.js , arond line 1700 add

    $( ‘#custom_id’ ).dropdown({
    gutter : 40,
    stack : false
    });

    Good luck

  • #41942

    Samuel-lilith

    Hello Crerem.
    control.js was not changed, and have same parameters.
    I think some problems with my php tell me please if you can see some errors –

    <div id="advanced_search_map_button_mobile" style="display:none;">
         Расширенный поиск</div>
    <div class="adv-search-mobile" id="adv-search-mobile">
    <div id="closeadvancedmobile"></div>    
     <form role="search" method="post" action="http://alushta-rest.ru/?page_id=5">
                                  <form role="search" method="post" action="http://alushta-rest.ru/?page_id=5">
                                      <div class="adv_search_internal advz1"> 
                            <select id="adv_actions_2_mobile"  name="filter_search_action[]"  class="cd-select" >
                                <option value="all"><?php _e('All Listings','wpestate'); ?></option>
                                <?php print $actions_select; ?>
                            </select>    
                        </div>
    
                        <div class="adv_search_internal advz2"> 
                            <select id="adv_categ_2_mobile"  name="filter_search_type[]" class="cd-select" >
                                <option value="all"><?php _e('All Types','wpestate'); ?></option>
                                <?php print $categ_select; ?>
                            </select>  
                        </div>     
                               <div class="adv_search_internal ">
                                    <input type="number" max="15" min="1" id="rooms" name="rooms" placeholder="Спальных мест" class="advanced_select">
                              </div>
                               
    
            <input name="submit" type="submit" class="btn vernil small mobilesubmit" id="advanced_submit_2" value="Search">
    
        </form>  
    
    </div>

    Search parameters have default ID’s – Actions, Categories, Rooms…
    This is result – Result adv mob search

You must be logged in to reply to this topic.