简体   繁体   中英

Using Ajax with Wordpress to load Div without reloading page

I would like to be able to use the links of the left side of this page to load the sections without reloading the page. I'm assuming using Ajax would work but do not know javascript well enough to implement it.

I tried using the Ajaxify your WP tutorial but it's not working with my links ( ajaxify tut )

Is there a simple way to achieve with a minimal amount of coding?

Thanks!

I used this tutorial ( ajax tutorial ) and it worked. I overcomplicated it because it was wordpress and didn't think that method would work.

I added the javascript to the footer.php file. You can see the result here: example

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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