jeffreyvr / tailpress

TailPress is a minimal boilerplate theme for WordPress using Tailwind CSS.
https://tailpress.io
MIT License
1.26k stars 159 forks source link

Missing Tailwind Classes like: grid grid-cols-* #225

Closed sameraw closed 2 months ago

sameraw commented 2 months ago

I am having an issue where i cannot use tailwind grid class and some other classes. For example: wp_enqueue_script( 'tailpress', tailpress_asset( 'js/app.js' ), array(), $theme->get( 'Version' ) ); Causes the grid element to look like this: Screenshot 2024-08-22 at 6 43 20 PM

When I remove it and add the regular tailwind library: wp_enqueue_script( 'tailpress', tailpress_asset( 'js/tailwind.js' ), array(), $theme->get( 'Version' ) ); It looks fine: Screenshot 2024-08-22 at 6 43 29 PM there seems to be missing CSS classes native to Tailwind.

sameraw commented 2 months ago

Try using the following:

<div class="grid grid-cols-2 md:grid-cols-5 gap-4">
<div>Some Text </div>
<div>Some Text </div>
<div>Some Text </div>
<div>Some Text </div>
<div>Some Text </div>
</div>