arvgta / ajaxify

Ajaxify - An Ajax Plugin
https://4nf.org/
275 stars 124 forks source link

Body classes #89

Closed arvgta closed 8 years ago

arvgta commented 8 years ago

(this is only for documentational purposes)

Original question

Could you please add an option to reload body classes for ajaxify?


Solution - please see answer of "Courtney"

My work around is to put the WP generated body classes from body_class() on a div inside the #site-wrap div I am using in the "Content Element ID" setting. Note that anything (such as classes) on the element you're using for the "Content Element ID", and outside of it doesn't change. So if possible for some of you, it is easier to move body_class() from the body element inside what is actually being "refreshed" on the page so that it gets updated and can be used for CSS and PHP, rather than trying to change anything on the body tag.

arvgta commented 6 years ago

Now supported "out of the box" (in coming release)