Search Box Issues Icon Stack

Hi!

The search box isn’t working again and I’m not sure why. I am having this problem sitewide.

In addition, this issue is happening again

My website can be found here Keiani Enterprises

Hi,

Upon checking I can see the following errors in the console that could be preventing your search from working.

These errors seems to be coming from your sassy social share.

You could try testing for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

Let us know how it goes!

Hi, Paul!

I tried deactivating plugins and I also deleted a few, but the search box still isn’t working.You can click it, but nothing happens.

Hi,

I checked the console and still getting a js error.

Can you deactivate sassy social share plugin again and make it remain deactivated so we can check

Please also try to remove any code that is in Theme Options > JS and see if that resolves the issue.

If none of this work, kindly provide us your wordpress admin login in Secure Note

Thanks

Hi!

I temporarily deactivated sassy Social Share.

This is the code under Theme option Js I don’t recall what the code is for so hopefully I’m not ruining anything by removing it. I went ahead and removed it and reactivated Sassy Social Share and it now works as normal. Can you assist me in determining what this code is for to see whether or not I need to add it back to the website?

Blockquote

jQuery(function($) {

var $trigger = $(’.x-btn-navbar-search’);
var $formWrap = $(’.x-searchform-overlay’);
var $input = $formWrap.find(’.search-query’);
var escKey = 27;

function clearSearch() {
$formWrap.toggleClass(‘in’);
setTimeout(function() { $input.val(’’); }, 350);
}

$trigger.on(‘touchstart click’, function(e) {
e.preventDefault();
$formWrap.toggleClass(‘in’);
$input.focus();
});

$formWrap.on(‘touchstart click’, function(e) {
if ( ! $(e.target).hasClass(‘search-query’) ) {
clearSearch();
}
});

$(document).keydown(function(e) {
if ( e.which === escKey ) {
if ( $formWrap.hasClass(‘in’) ) {
clearSearch();
}
}
});

});

Blockquote

Hi,

The code is a temporary fix for your search when it was not working.

No need to add it back as it now works with the latest version of the theme.

Thanks

1 Like

Paul, you’re one smart cookie :smile:. Many thanks & kind regards!

You are most welcome!
We’re just glad Paul were able to help you out.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.