Answer the question
In order to leave comments, you need to log in
How to implement a non-reloadable wordpress menu?
Explain how to make a menu in wordpress so that it is not overloaded on the site pages. For example, betheme templates are made according to this principle: themes.muffingroup.com/be/webdesign
On the site redcollar.ru, the content is also changing, without reloading...
Answer the question
In order to leave comments, you need to log in
Update only content.
For example, the principle is as follows.
You track a click on a link in the menu, do ajax to your script handler.
var request = $.ajax({
url: "script.php",
method: "GET",
data: { id : menuId },
dataType: "html"
});
success: function(html){
$("#content").html(html);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question