WP-API / node-wpapi

An isomorphic JavaScript client for the WordPress REST API
http://wp-api.org/node-wpapi/
MIT License
1.68k stars 190 forks source link

Getting raw content with css classes injected but without css code #515

Open sramirezpch opened 11 months ago

sramirezpch commented 11 months ago

I'm querying pages and getting the response I want, but apparently I can't get the styles that are being applied to the page I created through the wordpress CMS. The background of the paragraph I created is vivid-red, but styles are not being applied when fetching the page and I was wondering if there is a way to fetch the css that's being applied to a resource (page, content, post, etc)

This is how the content is shown in the Wordpress editor. Screenshot 2023-12-12 at 16 42 36

This is how is shown when rendering the content when querying the page. Screenshot 2023-12-12 at 16 44 16