gutenberg styles into rest api
-
so i have this new problem with wp6.0 where blocks get classes applied and in the footer the styling gets added inside <style> tags. this is fine, until you switch out content via rest api. then some old styling might bring issues with the new content, respectively the styles of the new contents are missing. so as an example, if i load my home page, it has some block in there with
.wp-container-1
and in the footer this container gets some styling attached to it. now when i change contents via ajax, this old styling stays the same and might affect my loaded contents, plus my loaded content is now missing its own styling. how do i get these missing styles? is there some function that i could call on rest_prepare_{$post_type} to insert these? any help is much appreciated.
- The topic ‘gutenberg styles into rest api’ is closed to new replies.