Hi Developer-G,
I agree with you. Need to fix the route problem. Look at what I found in the theme.js file:
theme.announcementHeight = 0;
theme.HeaderSection = new function () {
this.onSectionLoad = function (target) {
// Search
if (theme.settings.enable_search) {
var $searchWrapper = $(‘.header-search__results-wrapper’);
var $searchContainer = $(‘.header-search__content’, target);
var $searchResultsContainer = $(‘.header-search__results’, target);
var currentReq = null;
var searchThrottleDelay = 400;
var searchThrottleTimeoutId = -1;
var imageReplaceRegex = {
search: /(.[^.]+)$/,
replace: ‘_100x$1’ };
var removeResultsAndPrepForMore = function removeResultsAndPrepForMore() {
var $oldResults = $searchResultsContainer.addClass(‘header-search__results–disband’);
setTimeout(function () {
$oldResults.remove();
}, 500);
$searchResultsContainer = $(‘
};
$(‘.header-search .input-with-button__input’, target).on(‘change.themeHeaderSection keyup.themeHeaderSection paste.themeHeaderSection’, function (e) {
var $input = $(this),
$form = $(this).closest(‘form’),
includeMeta = $searchWrapper.data(‘live-search-meta’);
// Has value changed?
if ($input.val() == $input.data(‘previous-value’)) {
return;
}
Could this be the cause? The replace: ‘_100x$1’ ]; ???
My knowledge with js is not great.
So after reverse engineering I changed it to 10x$1 but what happened is the photo of the product in the search box got smaller.
I guess thats not it…