Skip to main content

Command Palette

Search for a command to run...

Step 1: Basic Theme Structure – FSE Theme Development

Updated
•1 min read•View as Markdown
Step 1: Basic Theme Structure – FSE Theme Development

Step 1: Basic Theme Structure

Create the fundamental folder structure for a Full Site Editor (FSE) theme following WordPress best practices.

Code Snippet:

cd wp-content/themes/starry
mkdir -p {assets/{css,js,images},inc,parts,patterns,styles,templates}

What This Creates:

  • assets/ – Static files (CSS, JS, images)

  • inc/ – PHP includes and functions

  • parts/ – Template parts (header, footer, etc.)

  • patterns/ – Block patterns

  • styles/ – Theme style variations

  • templates/ – HTML template files

Next Step:

After creating the structure, we’ll add the essential theme files (style.css, theme.json, functions.php).


Resources & References

More from this blog

SOLID in WordPress: Auditing Our Own Plugin Catalog

WordPress makes it easy to write code that works and easy to write code that lasts, and those are not the same skill. Hooks, filters, custom post types, widgets — the platform hands you enough rope to build something maintainable or something that collapses the moment a second developer touches it. SOLID is the discipline that decides which one you get. Not as academic dogma imported from enterprise Java, but as five habits that map cleanly onto things WordPress developers already do every day.

Sep 9, 20265 min read
SOLID in WordPress: Auditing Our Own Plugin Catalog

4wp.dev

15 posts