Version: 0.14.5
WPSeed is a WordPress starter theme following the intention of being able to skip the time-consuming first steps when creating a new theme. WPSeed uses a variety of pre-built objects that allow kickstarting any kind of theme. These objects consist of:
- basic templates
- basic html/scss structure
- html/scss/javascript presets and essential functions
- responsive functionality including viewport-mixins, rem-based content resizing and a animated mobile menu
- a preset/config scss file managing all colors, fonts and sizes
- Node >= 0.12.x (nodejs.org)
- npm >=2.11.x (
npm install -g npm@latest) - php >= 5.4.0 or short_open_tag set
trueon your VM/Webserver
- Clone WPSeed
$ git clone git@github.com:flurinduerst/WPSeed.gitinto yourthemesdirectory.
WPSeed uses bower to manage vendors and gulp to compile assets from assets to dist. For details see gulpfile.js.
- Install gulp and Bower globally with
npm install -g gulp bowerif you haven't already - in the theme directory run
npm install && bower install && gulp - add your domain/ip to
browsersync_proxyingulpfile.js - you can now use gulp (run
gulp watchin your theme directory) to compile and optimize your asset files and run browsersync
- All important files provide a description/version at the top. Make sure to read it first.
functions-access.php(functions that control access to the site)functions-backend.php(backend related functions)functions-dev.php(functions used for development purposes)functions-elements.php(functions to output ACF flexible elements)functions-wpsetup.php(WordPress setup)
assets/styles/content.scss(content related styles)assets/styles/general.scss(re-usable classes and settings)assets/styles/main.scss(gathers all .scss files for compiling with gulp)assets/styles/nav.scss(navigation)assets/styles/essentials.scss(required SASS functions and all presets for responsive, this file is not meant to be changed)assets/styles/vars.scss(manages scaling, all colors, fonts and other presets)
assets/scrips/essentials.js(re-usable essential javascript/jQuery functions/variables)assets/scrips/main.js(javascript/jQuery)
The Wordpress default templates (like page.php, single.php) receive their content from the associated file inside the template folder. This way all templates are grouped together. index.php is forwarded to page.php.
str-footer.phpfooter content that shows up at the bottom of the page (this is content, don't mix this up withfooter.php)str-elements.phptemplate for ACF flexible elementstemp-home.phpdisplays default content and a full width teaser imagetemp-subsites.phpdisplays default content and content of the respective child pageswp-home.phpWP blog defaultwp-page.phpWP page defaultwp-single.phpWP post default
All templates are seperate into three categories recognizable by their prefix:
wp: wordpress default templates.temp: individual site templates.str: structure files that have to be included in other sites or the main structure.
By default, the layout will scale with the viewport-width as all units are rem based and html uses font-size as the root unit.
This scaling can be configured at the SIZE/SCALING section in vars.scss. It is also possible to stop the scaling at a certain viewport-width. See instructions inside vars.scss.
defined by variables
- The width of the two available variables
mobileanddesktopare defined in vars.scss. Usage (with default values): - min 800px
@include desktop {...} - max 799px
@include mobile {...}
defined by individual pixel widths
- at least 750px:
@include vpw_min(750px) - at most 500px:
@include vpw_max(500px) - between 1000px and 1200px:
vpw(1000px, 1200px)
defined by ascepct-ratio
- at least 16:9:
@include asr_min(16,9) { ... } - at most 4:3:
@include asr_max(4,3) { ... }
defined by css-class
the two available classes mobile and desktop perform as followed (with default values):
.desktop {
// hidden while < 800px;
}
.mobile {
// hidden while > 799;
}Author: Flurin Dürst
Contact: flurin@flurinduerst.ch
Twitter: @flurinduerst
- Fork it
- Create your feature branch
- Commit your changes
- Push to the branch
- Create new Pull Request
Feel free to contact me if you have questions or need any advice.
WPDistillery is released under the MIT Public License.
Note: The "About" section in README.md and the author (@author) notice in the file-headers shall not be edited or deleted without permission. For Details see License. Thank you.
