Browse files

Explain get_pjaxy_page_info

  • Loading branch information...
1 parent 724bab6 commit d882c65083897a7fa59a8ce04c9daf7df5c73c07 @chrisguitarguy committed Mar 25, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0
@@ -52,6 +52,8 @@ Pjaxy will look for templates in the same way that WordPress does: check the chi
Let's say your make a request for a single post. Pjaxy first looks in the childtheme directory in `pjax-templates` for `single.php`, the in the parent theme directory for `pjax-templates/single.php`. Same deal for taxonomy pages (including tags and categories).
+If you plan on using the built in JS to enable PJAX, just make sure to call `get_pjaxy_page_info` ([pjax.php]( at the top of each PJAX template. This function puts some stuff on the page to change the body class, page title, and header image.
Check out this [twenty eleven child theme]( for an example.
## License

0 comments on commit d882c65

Please sign in to comment.