Skip to content

CSS on Wordpress Pages Not Working #77

Answered by jeffreyvr
boomspot asked this question in Q&A
Discussion options

You must be logged in to vote

Not sure if I understand your question, but are you using Tailwind classes inside the block editor?

In that case: the JIT editor of Tailwind won't pick up classes that are typed in to your WordPress block editor, because it only keeps classes that are found in the files you specify in the content option. So if you wan't to use classes inside the editor, you would have to add them to the safelist so they are not purged.

https://tailwindcss.com/docs/content-configuration#safelisting-classes

TailPress uses a safelist.txt file for this.

https://github.com/jeffreyvr/tailpress/blob/master/safelist.txt

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@boomspot
Comment options

@komali2
Comment options

@jeffreyvr
Comment options

Answer selected by boomspot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants