Skip to content

Latest commit

 

History

History
63 lines (45 loc) · 3.26 KB

README.md

File metadata and controls

63 lines (45 loc) · 3.26 KB

WordPress theme boilerplate

GitHub repo size GitHub last commit GitHub release (latest by date including pre-releases) header cover Don't longer waste time by creating usual files and type usual code & functions in your wordpress theme project.

Theme content

Files

File name Usage
header.php The header template file usually contains your site’s document type, meta information, links to stylesheets and scripts, and other data.
footer.php For generating the footer
functions.php Imports, configs, and Custom Post Type
index.php The main template file. It is required in all themes.
front-page.php The front page template is always used as the site front page if it exists, regardless of what settings on Admin > Settings > Reading.
404.php The 404 template is used when WordPress cannot find a post, page, or other content that matches the visitor’s request.
customtemplate.php Custom template.
screenshot.webp Theme thumbnail.
style.css The main stylesheet. It is required in all themes and contains the information header for your theme.

Folders

Folder name Usage
assets Assets location (fonts, css, js, images)
includes Parts that are used multiple times in multiples pages (example: article card or section)
sass SASS files

Style

SASS

Launch SASS engine to compile after code modification

npm run watch

Complete CSS render (SASS compilation, autoprefixing and minification)

npm run deploy

Autoprefix CSS

npm run build-autoprefix

Minify CSS

npm run build-cleancss

Compile SASS to CSS

npm run build-sass