GithubHelp home page GithubHelp logo

jir4yu / wp-theme-prototype Goto Github PK

View Code? Open in Web Editor NEW
14.0 4.0 9.0 2.89 MB

WordPress theme prototype with Gulp asset pipeline includes SASS, Uglify, Imagemin and more

License: MIT License

JavaScript 56.71% PHP 40.80% SCSS 2.50%
wordpress theme-development sass gulp uglify imagemin

wp-theme-prototype's Introduction

WordPress Theme Prototype

Screenshot

Start developing new WordPress theme with ease.

This template will help setting up basic file structures and things you need to build your own WordPress theme. We use Gulp generator to compile and compress all assets on the fly.

What included?

  • Modernizr
  • Autoprefixer
  • CSS Minify
  • JS Uglify
  • Imagemin
  • Livereload

that's all enough for frontend developer who want to develop a WordPress theme.

๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป Usage

  • Clone this project to your wp-content/themes and rename it as you want
  • run npm install
  • open gulpfile.js and update your banner string
  • run gulp and start coding
  • for production, don't forget to remove remote repository by git remote remove origin

โš ๏ธ Header comment

Header comment in style.css is important when you developing WordPress theme. because WordPress will use this comment block to identify what theme is it, who made it, etc.

So if header comment is missing or incorrect, you will not see this theme in Appearance > Themes

Adding Libraries

When you want to use another libraries eg. bootstrap, magnific-popup, owl-carousel etc, to this project. Just install with npm install, bower install or yarn install like you used to. Then add the library stylesheet path to lib-css and javascript for the scripts.

don't forget to run npm run vendor every time when you added new library ๐Ÿง

Troubleshooting

gem SASS not found!

Just install SASS globally via gem install sass

wp-theme-prototype's People

Contributors

dependabot[bot] avatar itsjw avatar jir4yu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

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.