简体   繁体   English

Wordpress的AJAX页面加载

[英]AJAX page load for Wordpress

Recently, I came across this website . 最近,我偶然发现了这个网站 There, when you click on a portfolio item, you see is a loading text which has covered the item you clicked and the page loads below the header. 在那里,当您单击投资组合项目时,您会看到一个加载文本,其中包含您单击的项目,并且页面加载到标题下方。 It doesn't even leave the page to go to the other page. 它甚至不离开该页面转到另一页面。

How can this be achieved. 如何做到这一点。 My WordPress site here , I've the look but only the ajax is left. 我的WordPress网站在这里 ,外观不错,只剩下ajax。 Please help me out if you can, I really have no idea where to go from here :( 如果可以的话请帮帮我,我真的不知道从这里去哪里:(

I've used the same image from this website . 我使用了该网站上的同一张图片。 Just for working, will upload mine once done. 只是为了工作,完成后将上传我的。

There are various plugins available on WordPress plugins repository which will ajaxify your website. WordPress插件存储库上有各种可用的插件,可以使您的网站更加完美。

Only thing you need to do is configure the plugin setting properly by specifying the ID of main page content and rest will be taken care by plugin itself. 您只需要做的就是通过指定主页内容的ID正确配置插件设置,其余的一切将由插件本身负责。

There is also a jquery plugin available ie PJAX which you can use and implement as per your requirements. 还有一个可用的jquery插件,即PJAX ,您可以根据需要使用和实现。

Hope it helps you. 希望对您有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM