Mobile app version of vmapp.org
Login or Join
Martha676

: Hashbang, pjax, or djax for dynamic pages in WordPress? I am modifying a current WP theme that uses child pages loaded into tabs via jQuery and hashtags. For example, http://example.com/category

@Martha676

Posted in: #Google #Jquery #SearchEngines #Wordpress

I am modifying a current WP theme that uses child pages loaded into tabs via jQuery and hashtags. For example, example.com/category would be the parent page with tabs. Clicking on one of those tabs loads the child page, which WordPress knows as example.com/category/tab1, into the div dynamically, and changes the URL to example.com/category/#tab1.
What I'm trying to do is make the pages crawlable by Google, so that our tabs show up in search results as individual pages.

Google's own documentation seems to recommend using the "hashbang" method (https://developers.google.com/webmasters/ajax-crawling/docs/getting-started), and then serving up HTML snapshots of each tab.

But other developers I've read strongly recommend not using this method, and instead using pjax to dynamically load the content while making the URLs appear to be separate pages, so the SE will crawl it anyway. further research showed that djax is a slimmed down version of pjax, written specifically for WordPress.

I'm a little out of my depth here in trying to figure out which path I should go down, and how to convert the theme I'm working on to one of these methods. So, my question is:

Should I go with Google's recommendation of the hashbang method, or pjax, or djax? Why?

Whichever one I should start developing with, can anyone provide me with a way to get started learning how to use it and implement it? Most of the documentation I've found is way out of my depth.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Martha676

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme