Hi,
We are using the-bootstrap and are having an issue where code is inserted into the page in the footer area by wp_footer() call which has a JS error.
This is the code that gets inserted:
if (jQuery("ul (li.page_item):has(ul.children)").length > 0) {
jQuery("ul (li.page_item):has(ul.children)").hover(function () {
jQuery(this).children("a").removeAttr('href');
jQuery(this).children("a").css('cursor', 'default');
jQuery(this).children("a").click(function () {
return false;
});
});
}
else if (jQuery("ul (li.menu-item):has(ul.sub-menu)").length > 0) {
jQuery("ul (li.menu-item):has(ul.sub-menu)").hover(function () {
jQuery(this).children("a").removeAttr('href');
jQuery(this).children("a").css('cursor', 'default');
jQuery(this).children("a").click(function () {
return false;
});
});
}
If I comment out wp_footer() in footer.php, then this code goes away.
When that code is in the template we get the following JS error:
Error: Syntax error, unrecognized expression: ul (li.page_item):has(ul.children)
Does anyone know why this code is being inserted, by what and where?
Thank you.