gregsullivan / _tw

The _tw generator creates a WordPress starter theme optimized for modern development with Tailwind CSS, Tailwind Typography and the WordPress editor.
https://underscoretw.com
GNU General Public License v2.0
486 stars 28 forks source link

The theme does not work in the Bedrock project #112

Open Sergey98Am opened 1 month ago

Sergey98Am commented 1 month ago

I have a WordPress Bedrock project, but this theme does not work there. In another WordPress project without Bedrock, it is working.

image (6)

I get these style.css and script.min.js 404 errors.

Screenshot from 2024-05-23 18-32-44

Is there a way to use this theme in the Bedrock project?

gregsullivan commented 1 month ago

Hi Sergey—Thanks for posting this!

I've never used Bedrock before, so I can't confirm one way or another. I don't remember hearing from anyone saying they were using it with _tw.

Can you confirm that you've run npm run dev (or watch or prod)? I just want to confirm the script.min.js and style.css files have definitely been created.

Barring that, I would need to set up Bedrock and see what I found during that process. I won't have time to do that in the immediate future, but I can keep this open and make an attempt when possible!

Sergey98Am commented 1 month ago

@gregsullivan. Yes, I have run these commands, there are script.min.js and style.css files

Screenshot from 2024-05-24 14-30-01

gregsullivan commented 1 month ago

Great, thank you! I'll try to get Bedrock set up locally, and I'll note anything I find here.

Sergey98Am commented 1 month ago

Thanks in advance

kyle-cyberprairie commented 2 weeks ago

@Sergey98Am is this because of the file structure? I am using _tw with Bedrock and it is working for me. I had to set a symlink for my theme, so /my-theme exists on the project root, which web/app/themes/my-theme points to.