« See all FAQs for Zig Zag - Responsive WordPress Template

I have an issue when installing WordPress in a subdirectory. When I try to click menu link to some page section (from the separate page) doesn’t work.

Here is the code you have to insert into Extra JavaScript in Brankic Panel if your subdirectory is “site”. If it is something else, replace site with the name of subdirectory (2 places)
jQuery(document).ready(function($) {
$("#menu li a").each(function(){
var menu_url = $(this).attr("href")
if (menu_url.indexOf("site") > 0) {
var new_menu_url = menu_url.replace("site", "");
$(this).attr("href", new_menu_url);
}
})
})
by
by
by
by
by
by