Coder Social home page Coder Social logo

wordpress-rh-starter-theme's Introduction

Russell Heimlich's Starter WordPress Theme

Getting Started

Install Composer dependencies for PHPCS and code linting: composer install

Install node dependencies like Gulp: npm install

Start Gulp wich will watch for changes and recompile Sass and JavaScript: npm run start

Templating

Rendering markup is handled by passing data to Twig templates via Sprig. WordPress escaping functions are available as Twig filters.

CSS

Sass files get compiled to rh.min.css which is heavily optimized for performant delivery. See the class-rh-scripts-and-styles.php file for helper methods.

JavaScript

JavaScript files wil lbe uglified and minified in the /wp-content/themes/rh/assets/js/ directory. Scripts must end with the extension .src.js in order for them to be compiled. Scripts without the .src.js suffix will be deleted by the Gulp watch process when they are recompiled. When in production you should call the uglified and minified version. See the class-rh-scripts-and-styles.php file for helper methods.

Styleguide

This theme comes with a styleguide built in to the theme. Visit /styleguide/ to access the files in the /styleguide/ directory of the theme. /styleguide/colors/ corresponds to the /styleguide/colors.php in the theme. Be sure to add any components or modules to the styleguide to make quality control easier.

wordpress-rh-starter-theme's People

Contributors

kingkool68 avatar

Stargazers

Mike E-J avatar Greg Terrono avatar Christofer Laurin avatar Guy Heidemann avatar Karanikolas Kostantinos avatar  avatar Leli avatar Cory Birdsong avatar  avatar Michael Engard avatar Sam Oakley avatar

Watchers

 avatar  avatar

wordpress-rh-starter-theme's Issues

Add Logic for Dynamic Image Resizing

Resources

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.