Skip to content

trevanhetzel/wp-theme-starter

Repository files navigation

Starter theme

My starter WordPress theme.

Favicons

The favicon sizes you need are in the root directory (inspired by https://github.com/audreyr/favicon-cheat-sheet), however you'll need to generate the favicon.ico in a special way. Make sure you have ImageMagick installed and then save a 16x16 PNG and 32x32 file in the same directory somewhere. Then run:

convert favicon-16.png favicon-32.png favicon.ico

Copy that outputted favicon.ico into your theme directory and you're set!

Tailwind CSS

Run npm run watch-css when developing. This will watch PHP files. Then, before you deploy, run npm run build to minify the CSS. This is a work in progress. Not ideal. Need to bake tailwind into webpack better.