-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cant use some Tailwind classes #2
Comments
Thanks for quick response. I have managed to fix the problem. The templates failing to read the mentioned classes are in tailpress/template-parts/articles/latest-articles.php for example Then I looked into the tailwind.config.js under purge option Added an extra line with './//.php', to become Now its working. all the Tailwind classes referenced from these template parts are showing. |
Ah gotcha. Yeah I didn't include nested / nested folder structures as the initial theme isn't set up that way. Good call. Wanna submit a pull request and I'll merge it in? |
As @fungayimakoni referenced above, if you want to have nested folder structures in your PHP, make sure to modify the PurgeCSS structure in tailwind.config.js
|
Hi, Im new to Tailwind css but I'm loving this theme its great since I was already used to underscores starter theme for all my projects. However for some reason I can't use some of the Tailwind classes. Not sure if its a me problem or theme related. Is there anything I can adjust to make all classes applicable. e.g all background image classes, w-1/3, flex-1 etc
The text was updated successfully, but these errors were encountered: