NooTheme Premium WordPress Theme › Forums › CitiLights › Home Slider issue
This topic is: not resolved
Tagged: home slider, homepage, issue, search
- This topic has 1 reply, 2 voices, and was last updated 6 years, 1 month ago by
Vermouth Bui.
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
6 years, 1 month ago #2486
Hi, The theme is amazing. It is neat. I am experiencing a problem with the home slider and the search area below it is not full width and is boxed. How do you fix it?
Website: http://www.happyliving4u.com
6 years, 1 month ago #2498Hi,
Thank you for contacting us.
We haven't got configuration for this custom.
If you want the search area is fullwidth, you can change them on php code:
You edit file: ../wp-content/themes/noo-citilights/framework/admin/noo-propety.php
with function: advanced_map
replace it as this code:
<code>public static function advanced_map($gmap=true, $btn_label='', $show_status=false, $map_class='', $search_info=false, $no_search_container=false,$source='property',$disable_search_form = false,$show_advanced_search_field=false, $map_height=''){ global $wpdb; $result_pages = get_pages( array( 'meta_key' => '_wp_page_template', 'meta_value' => 'search-property-result.php' ) ); if($result_pages){ $result_page_url = get_permalink($result_pages[0]->ID); if(is_page($result_pages[0]->ID)){ $show_status = true; } }else{ $result_page_url = ''; } if(empty($btn_label)) $btn_label=__('Search Property',NOO_TEXT_DOMAIN); $map_class = !$gmap ? 'no-map ' . $map_class : $map_class; $map_class = $no_search_container ? 'no-container ' . $map_class : $map_class; $map_height = empty( $map_height ) ? self::get_google_map_option('height', 700) : $map_height; ?> <div class="noo-map <?php echo esc_attr($map_class)?>"> <?php if($gmap):?> <div id="gmap" data-source="<?php echo $source?>" style="height: <?php echo $map_height; ?>px;" ></div> <div class="gmap-search"> <input placeholder="<?php echo __('Search your map',NOO_TEXT_DOMAIN)?>" type="text" autocomplete="off" id="gmap_search_input"> </div> <div class="gmap-control"> <a class="gmap-mylocation" href="#"><i class="fa fa-map-marker"></i><?php echo __('My Location',NOO_TEXT_DOMAIN)?></a> <a class="gmap-full" href="#"><i class="fa fa-expand"></i></a> <a class="gmap-prev" href="#"><i class="fa fa-angle-left"></i></a> <a class="gmap-next" href="#"><i class="fa fa-angle-right"></i></a> </div> <div class="gmap-zoom"> <a href="#" class="zoom-in"><i class="fa fa-plus"></i></a> <a href="#" class="zoom-out"><i class="fa fa-minus"></i></a> </div> <div class="gmap-loading"><?php _e('Loading Maps',NOO_TEXT_DOMAIN);?> <div class="gmap-loader"> <div class="rect1"></div> <div class="rect2"></div> <div class="rect3"></div> <div class="rect4"></div> <div class="rect5"></div> </div> </div> <?php endif;?> <?php if(!$disable_search_form):?> <div class="gsearch"> <?php if( !$no_search_container ) : ?> <div class=""> <?php endif; ?> <?php if($search_info):?> <div class="gsearch-info"> <h4 class="gsearch-info-title"><?php _e('Find Your Place',NOO_TEXT_DOMAIN)?></h4> <div class="gsearch-info-content"><?php _e('Instantly find your desired place from your own idea of location, at any price <br> and other elements just by starting your search now',NOO_TEXT_DOMAIN)?></div> </div> <?php endif;?> <div class="gsearch-wrap"> <?php if($gmap):?> <h3 class="gsearch-title"><i class="fa fa-search"></i><span><?php echo __('SEARCH FOR PROPERTY',NOO_TEXT_DOMAIN)?></span></h3> <?php endif;?> <form action="<?php echo $result_page_url ?>" class="gsearchform" method="get" role="search"> <?php if( get_option('permalink_structure') == '' && !empty($result_page_url) ) : ?> <input type="hidden" name="page_id" value="<?php echo $result_pages[0]->ID; ?>" > <?php endif; ?> <div class="gsearch-content"> <div class="gsearch-field"> <?php // count number of search fields $field_count = 0; if( self::get_advanced_search_option('pos1','property_location') ) { self::advanced_map_search_field(self::get_advanced_search_option('pos1','property_location'),$show_status); $field_count++; } if( self::get_advanced_search_option('pos2','property_sub_location') ) { self::advanced_map_search_field(self::get_advanced_search_option('pos2','property_sub_location'),$show_status); $field_count++; } if( self::get_advanced_search_option('pos3','property_status') ) { self::advanced_map_search_field(self::get_advanced_search_option('pos3','property_status'),$show_status); $field_count++; } if( self::get_advanced_search_option('pos4','property_category') ) { self::advanced_map_search_field(self::get_advanced_search_option('pos4','property_category'),$show_status); $field_count++; } if( self::get_advanced_search_option('pos5','_bedrooms') ) { self::advanced_map_search_field(self::get_advanced_search_option('pos5','_bedrooms'),$show_status); $field_count++; } if( self::get_advanced_search_option('pos6','_bathrooms') ) { self::advanced_map_search_field(self::get_advanced_search_option('pos6','_bathrooms'),$show_status); $field_count++; } if( self::get_advanced_search_option('pos7','_price') ) { self::advanced_map_search_field(self::get_advanced_search_option('pos7','_price'),$show_status); $field_count++; } if( self::get_advanced_search_option('pos8','_area') ) { self::advanced_map_search_field(self::get_advanced_search_option('pos8','_area'),$show_status); $field_count++; } ?> <?php if($show_advanced_search_field){ $advanced_search_field = self::get_advanced_search_option('advanced_search_field',array()); if(!empty($advanced_search_field) && is_array($advanced_search_field) && ($features = self::get_feature_option('features'))){ echo '<div class="gsearch-feature">'; echo '<a href="#gsearch-feature" class="gsearch-feature-control" data-parent="#gsearch-feature" data-toggle="collapse">'.__('Advanced Search',NOO_TEXT_DOMAIN).'</a>'; echo '<div id="gsearch-feature" class="panel-collapse collapse row">'; foreach ($features as $feature){ $feature_id = sanitize_title($feature); $feature = function_exists('icl_translate') ? icl_translate(NOO_TEXT_DOMAIN,'noo_property_features_'. $field_id, $feature ) : $feature; if(in_array($feature_id, $advanced_search_field)){ $id = '_noo_property_feature_'.$feature_id; $cheked = isset($_GET[$id]) ? true : false; echo '<div class="col-sm-3">'; echo '<label class="checkbox-label" for="'.$id.'"><input '.($cheked && $show_status ? ' checked="checked"':'').' type="checkbox" value="1" class="" name="'.$id.'" id="'.$id.'">&nbsp;'.ucfirst($feature).'</label>'; echo '</div>'; } } echo '</div>'; echo '</div>'; } } ?> </div> <div class="gsearch-action"> <div class="gsubmit <?php if( $field_count <= 4 ) echo 'one-line'; ?>"> <button type="submit"><?php echo $btn_label ?></button> </div> </div> </div> </form> </div> <?php if( !$no_search_container ) : ?> </div> <?php endif; ?> </div> <?php endif;?> </div> <?php }</code>
Regards,
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in and have valid license to reply to this topic.