July 12, 2017 at 17:33
#167172
Moderator
Hi,
Fixed! Check the search icon from the menu
I’ve replaced code with this one in child theme functions.php file
COPY CODE
if ( ! function_exists( 'kleo_get_search_menu_item' ) ) {
function kleo_get_search_menu_item() {
$context = sq_option( 'search_context', '' );
if ( is_array( $context ) ) {
$context = implode( ',', $context );
}
//Defaults
$action = home_url( '/' );
$hidden = '';
$input_name = 's';
if ( function_exists( 'bp_is_active' ) && $context == 'members' ) {
//Buddypress members form link
$action = bp_get_members_directory_permalink();
} elseif ( function_exists( 'bp_is_active' ) && bp_is_active( 'groups' ) && $context == 'groups' ) {
//Buddypress group directory link
$action = bp_get_groups_directory_permalink();
} elseif ( class_exists( 'bbPress' ) && $context == 'forum' ) {
$action = bbp_get_search_url();
$input_name = 'bbp_search';
} elseif ( $context == 'product' ) {
$hidden .= '<input type="hidden" name="post_type" value="product">';
$action = home_url( '/' ) . '?post_type=product';
}
ob_start();
?>
<a class="search-trigger" href="#"><i class="icon icon-search"></i></a>
<div class="kleo-search-wrap searchHidden" id="ajax_search_container">
<?php echo do_shortcode('[wpdreams_ajaxsearchpro id=1]'); ?>
<div class="kleo_ajax_results"></div>
</div>
<?php
$form = ob_get_clean();
return $form;
}
}
Also, I've added this CSS in quick css area to make a little space between input search form and the container edges.
COPY CODE
#header div#ajax_search_container {
padding: 10px 10px;
}
Cheers
R.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Ticket solution