February 3, 2023 at 11:12 pm
#1396609
Hi,
To replace the burger menu parent cloned menu item text to a different text try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:
function replace_burger_menu_parent_cloned_menu_item_text() { ?>
<script>
window.addEventListener('DOMContentLoaded', function() {
(function($){
$('.avia_mobile').on('click', '.av-burger-menu-main', function() {
$('.menu-item-2339 .avia-menu-text:first').text(function(index, text) {
return text.replace('Gezichtsbehandelingen', 'Overview All Facial Treatments');
});
});
}(jQuery));
});
</script>
<?php
}
add_action('wp_footer', 'replace_burger_menu_parent_cloned_menu_item_text');
Please change the text: Overview All Facial Treatments to the text you wich to use.
Best regards,
Mike