Skip to content

File Structure

adam edited this page Jan 30, 2019 · 1 revision

All source files (other than wordpress templates) exist in the /src directory. There will be very few reasons you will need to edit anything outside of this directory.

Templates

Page templates themselves are php files located in the root of the project are are usually prefixed with 'page_'.

Globals

The /src/globals folder is where you will find all global assets, this includes global styles, mixins, images, fonts and javascript

Components

Almost everything in the clarity theme is a component, components are self-contained blocks of code and can be found in /src/components/c-[component-name]. Each component will have at least 2 files, a component.json and a view.php.

For more information about components, see Components