# Sage 9 folder structure

**URL:** https://discourse.roots.io/t/sage-9-folder-structure/9880
**Category:** sage
**Created:** 2017-06-27T21:19:42Z
**Posts:** 5

## Post 1 by @jamiechong — 2017-06-27T21:19:42Z

I’m looking at Sage 9 for the first time and I’m trying to wrap my head around the folder structure. Inside `/themes/sage/` there is no `style.css`, `functions.php`, etc. These files are in `resources`. How does Wordpress know that!? Yet somehow it works. What’s the obvious thing I’m missing?

---

## Post 2 by @QWp6t — 2017-06-27T21:22:06Z

We’re not doing anything fancy. WordPress simply supports that.

---

## Post 3 by @jamiechong — 2017-06-27T21:25:37Z

I’ll have to search for Wordpress docs on that then. Which file is the entry point?

---

## Post 4 by @ben — 2017-06-28T01:01:10Z

`resources/functions.php`

---

## Post 5 by @jasperfrumau — 2017-07-01T05:20:30Z

Yeah, I think that is shown at `wp-includes/class-wp-theme.php` . See:

> <https://github.com/WordPress/WordPress/blob/master/wp-includes/class-wp-theme.php#L1045>

WordPress does already scan one level deep.  
Also see [https://github.com/roots/sage/issues/1870](https://github.com/roots/sage/issues/1870) . Good discussion on the way WordPress scans for files and how Roots has come up with a way to load files from more than one level deep for files in `resources/views`. @ben mentioned this SO thread in the solved Roots Sage issue : [https://wordpress.stackexchange.com/questions/249984/page-template-in-two-level-deep-folder/250024#250024](https://wordpress.stackexchange.com/questions/249984/page-template-in-two-level-deep-folder/250024#250024) that explains things rather well too.
