Hello, Enmanuel,
Thank you for providing access. We have resolved the issue by adding the following file to your child theme:
xstore-child/js/fix-ampersant.js
with the corresponding code.
jQuery(function($){
function fixAmpersands(context){
$(context).find('.page-numbers a, a.page-numbers, .woocommerce-pagination a')
.each(function () {
let href = $(this).attr('href');
if(href){
href = href.replace(/#038;/g, '&').replace(/&/g, '&');
$(this).attr('href', href);
}
});
}
fixAmpersands(document);
$(document).on('elementor/popup/show elementor/popup/hide elementor/frontend/init elementor/page/init', function(){
fixAmpersands(document);
});
$(document).on('et_ajax_request_success et_pb_ajax_page et_load_products et_filter_products', function(){
fixAmpersands(document);
});
$(document).ajaxComplete(function(){
fixAmpersands(document);
});
const observer = new MutationObserver(function(mutations){
mutations.forEach(function(m){
if(m.addedNodes.length > 0){
fixAmpersands(document);
}
});
});
observer.observe(document.body, { childList: true, subtree: true });
});
We have also added the following custom code to xstore-child/functions.php.
add_action( ‘wp_enqueue_scripts’, ‘fix_ampersant_script’ );
function fix_ampersant_script() {
wp_register_script(
'fix-ampersant',
get_stylesheet_directory_uri() . '/js/fix-ampersant.js',
array('jquery'),
'1.0',
true
);
wp_enqueue_script('fix-ampersant');
}
Please remember to clear your browser cache before checking the results.
Best regards,
8Theme Team















