• Samuel-lilith
    June 8, 2014 at 11:55 am #40974

    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>
    Anna
    June 10, 2014 at 12:56 pm #41480

    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

    Samuel-lilith
    June 12, 2014 at 8:25 am #41848

    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

    Anna
    June 12, 2014 at 8:32 am #41849

    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

    Samuel-lilith
    June 12, 2014 at 9:36 am #41858

    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.

    Anna
    June 12, 2014 at 11:01 am #41869

    Hi Samuel

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

    Thanks
    Anna

    Samuel-lilith
    June 12, 2014 at 11:45 am #41877

    http://alushta-rest.ru/
    Thank you!

    crerem
    June 12, 2014 at 4:49 pm #41918

    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

    Samuel-lilith
    June 12, 2014 at 6:46 pm #41942

    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.

Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.