SlideShare a Scribd company logo
Better WordPress Theme Development Workflow
HELLO!
I am Rajeeb Banstola
You can find me at @RajeebTheGreat
I work at @ThemeGrill
Better
WordPress
Theme
Development
Workflow
“Too Many Tools, Too Much to
Learn, Not Enough Time.
1. Starter Theme
2. Task Runner
3. LiveReload
4. Deploy using Git
5. CSS Preprocessor
6. Git Shortcuts
7. Offline Documentation
8. Easy POT File
9. Vagrant Local Environment
Overview
Why?
Saves Time
Time == $$
Time == Freedom
How do I Integrate
these tools in my
workflow?
1. Note down the process
2. Identify the points where I can use those tools.
Story
Time
Better WordPress Theme Development Workflow
Use Git
Problems with Current
Approach to Developing New
Theme
Coding from Scratch
1. Repetitive
2. Time Consuming
Using finished theme
1. Undoing old work
2. Often ends up with
codes you don’t need
for new theme
1. Building
and using
own
starter
Theme
Create your own
Starter Theme
1. Your Coding Style
2. Your Common
Codes
3. More accessibility
features
CSS/JS Best Practices
▸Minify number of HTTP request
▸Minify the size of downloaded
file
▸Make JavaScript function and
variable names descriptive
2. Best
Practices &
Contradiction
Gulp
Built On:
Task Runners Come to
Rescue here!
▸ Uses npm packages
to run tasks
▸ Create Tasks in
Gulpfile.js
▸ Add Gulp packages in
Package.json
Gulp Styles Task Example
1. Complies SCSS
2. Runs through
autoprefixer (
CanIUse.com
Database )
3. Minifies CSS
4. Renames the file
Gulp Scripts Task Example
1. Concat files at
given directory
2. Minifies the
concatenated file
3. Renames the file
Better WordPress Theme Development Workflow
3. Hitting
F5 button
everytime
you make
changes
Gulp Watch Task Example
1. Watches for
Changes
2. Runs appropriate
tasks
3. Automatically
refreshes the
browser
Better WordPress Theme Development Workflow
What’s wrong with FTP?
▸Too Slow
▸Tempting to make live changes
on server
▸No version control
4. Deploy
using Git
and
PHPloy
Deploy using
PHPloy
1. Works with Git
2. Deploying as
simple as
writing “phploy”
on command
line
5. CSS
Preproces
sor
Partials, Variables,
Nesting
● Divide your CSS into
Logical Sections
● Easy to change
things with variable
● Better Code
Readability
Partials
Divide your CSS
into Logical
Sections
Variable
s
Define variable
on SCSS file to
use later
Nesting
write selectors
that mimic the
structure of
your HTML
6. Git
Aliases
Automate
Repetitive Git
Tasks
Set handy shortcuts
for your git
commands
Better WordPress Theme Development Workflow
Better WordPress Theme Development Workflow
7. Offline
Documentation
HTML/CSS, JS, PHP,
WordPress
Documentation
Offline
Dash for Mac
Zeal for Windows
and Linux
8. Easy POT
File
Get rid of POEdit
Create .POT files with
task runners ( Gulp )
Package: Gulp-WP-
POT
Better WordPress Theme Development Workflow
9. Varying
Vagrant
Vagrants
Development
environment for
WordPress
Works with:
Virtualization
Software like
Virtualbox
Final Workflow
▸Run vagrant up
▸Clone starter theme
▸A lot of Git commit & Gulp
Watch
▸Deploy the code using PHPloy
References:
1. https://www.atlassian.com/git/tutorials/
2. https://github.com/RajeebTheGreat/_s/tree/gulp
3. https://codeable.io/community/speed-up-your-
theme-development-with-gulp/
4. https://github.com/banago/PHPloy
5. https://scotch.io/tutorials/getting-started-with-
sass
6. https://git-scm.com/book/en/v2/Git-Basics-Git-
Aliases
7. https://zealdocs.org/
8. https://www.npmjs.com/package/gulp-wp-pot
9. https://github.com/Varying-Vagrant-
Vagrants/VVV
THANKS!
Any questions?
You can find me at @RajeebTheGreat
Special thanks to all the people who made and released these awesome
resources for free:
▸ Simple line icons by Mirko Monti
▸ E-commerce icons by Virgil Pana
▸ Streamline iconset by Webalys
▸ Presentation template by SlidesCarnival
▸ Photographs by Death to the Stock Photo (license)
▸ Photographs by Unsplash (license)
Credits

More Related Content

PPTX
WordPress plugin development
PPTX
The Ultimate WordPress Development Environment
PPTX
SASS for WordPress Workshop
PDF
Coding with jetpack
PDF
Building a community of Open Source intranet users
PPTX
Welcome to the World of WordPress
PPTX
Word press sites maintenanace
PDF
WordPress as a Service
WordPress plugin development
The Ultimate WordPress Development Environment
SASS for WordPress Workshop
Coding with jetpack
Building a community of Open Source intranet users
Welcome to the World of WordPress
Word press sites maintenanace
WordPress as a Service

What's hot (19)

PPT
Working with WordPress in a Team Environment
PPTX
WordPress in 90 minutes
PPTX
WordPress Multilingual: WordCamp Antwerp 2016
PPTX
Top 10 WordPress Plugins
PPT
WordPress plugins
PPTX
WordPress Insider Meetup Group - Jan, 7, 2016 meeting
PPTX
Building the basics (WordPress Ottawa 2014)
PPT
Week 11 - Hosting and Migration
PDF
WordPress as a Headless CMS - Bronson Quick
PPT
Week 12 - Search Engine Optimization
PPT
Week 7 introduction to theme development
PDF
wp cli- don’t fear the command line
PPTX
Multisite core concepts final
DOCX
Static site best practices
PPTX
Introduction to Web development
PDF
WordPress Security : What We Learnt When We Were Hacked : WordCamp Mumbai 2017
PPTX
WordPress.Org Theme Standards - WordCamp Bangkok 2019
PDF
The Future of-the CMS (Twin Cities DrupalCamp 2015)
PPT
Week 5 - Introduction to plug-ins and widgets
Working with WordPress in a Team Environment
WordPress in 90 minutes
WordPress Multilingual: WordCamp Antwerp 2016
Top 10 WordPress Plugins
WordPress plugins
WordPress Insider Meetup Group - Jan, 7, 2016 meeting
Building the basics (WordPress Ottawa 2014)
Week 11 - Hosting and Migration
WordPress as a Headless CMS - Bronson Quick
Week 12 - Search Engine Optimization
Week 7 introduction to theme development
wp cli- don’t fear the command line
Multisite core concepts final
Static site best practices
Introduction to Web development
WordPress Security : What We Learnt When We Were Hacked : WordCamp Mumbai 2017
WordPress.Org Theme Standards - WordCamp Bangkok 2019
The Future of-the CMS (Twin Cities DrupalCamp 2015)
Week 5 - Introduction to plug-ins and widgets
Ad

Similar to Better WordPress Theme Development Workflow (20)

PPTX
Untangling fall2017 week2
PPTX
Untangling fall2017 week2_try2
PPTX
Untangling4
PPTX
Que nos espera a los ALM Dudes para el 2013?
PDF
Programming Sessions KU Leuven - Session 01
PDF
Continuous Integration with Open Source Tools - PHPUgFfm 2014-11-20
PDF
O'Leary - Using GitHub for Enterprise and Open Source Documentation
PPTX
Using Git to Organize Your Project
PPTX
Introduction to Github action Presentation
PPTX
mini-project.pptx
PDF
Expanding XPages with Bootstrap Plugins for Ultimate Usability
PDF
Getting Started with the Cortana Skills Kit
PPTX
Version control
PDF
Building the next generation of themes with WP Rig 2.0
PDF
Beginner Workshop for Student Developers - Tratech-presentation.pdf
PPTX
Improving Workflows With Grunt.js - Big D Design 2014 - Dallas Texas
PDF
WordPress At Scale. WordCamp Dhaka 2019
PPTX
Untangling spring week5
PDF
WebDev Crash Course
PDF
appengine ja night #25 Google App Engine for PHP (English)
Untangling fall2017 week2
Untangling fall2017 week2_try2
Untangling4
Que nos espera a los ALM Dudes para el 2013?
Programming Sessions KU Leuven - Session 01
Continuous Integration with Open Source Tools - PHPUgFfm 2014-11-20
O'Leary - Using GitHub for Enterprise and Open Source Documentation
Using Git to Organize Your Project
Introduction to Github action Presentation
mini-project.pptx
Expanding XPages with Bootstrap Plugins for Ultimate Usability
Getting Started with the Cortana Skills Kit
Version control
Building the next generation of themes with WP Rig 2.0
Beginner Workshop for Student Developers - Tratech-presentation.pdf
Improving Workflows With Grunt.js - Big D Design 2014 - Dallas Texas
WordPress At Scale. WordCamp Dhaka 2019
Untangling spring week5
WebDev Crash Course
appengine ja night #25 Google App Engine for PHP (English)
Ad

Recently uploaded (20)

PPTX
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
PDF
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
PPT
Ethics in Information System - Management Information System
PPTX
SAP Ariba Sourcing PPT for learning material
PPTX
E -tech empowerment technologies PowerPoint
PPTX
Slides PPTX World Game (s) Eco Economic Epochs.pptx
PPT
isotopes_sddsadsaadasdasdasdasdsa1213.ppt
PPTX
Database Information System - Management Information System
DOCX
Unit-3 cyber security network security of internet system
PPTX
Funds Management Learning Material for Beg
PPTX
Internet___Basics___Styled_ presentation
PPTX
Digital Literacy And Online Safety on internet
PDF
Introduction to the IoT system, how the IoT system works
PDF
Exploring VPS Hosting Trends for SMBs in 2025
PPT
Design_with_Watersergyerge45hrbgre4top (1).ppt
PDF
Sims 4 Historia para lo sims 4 para jugar
PDF
Slides PDF The World Game (s) Eco Economic Epochs.pdf
PPTX
INTERNET------BASICS-------UPDATED PPT PRESENTATION
PDF
The New Creative Director: How AI Tools for Social Media Content Creation Are...
PDF
Tenda Login Guide: Access Your Router in 5 Easy Steps
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
Ethics in Information System - Management Information System
SAP Ariba Sourcing PPT for learning material
E -tech empowerment technologies PowerPoint
Slides PPTX World Game (s) Eco Economic Epochs.pptx
isotopes_sddsadsaadasdasdasdasdsa1213.ppt
Database Information System - Management Information System
Unit-3 cyber security network security of internet system
Funds Management Learning Material for Beg
Internet___Basics___Styled_ presentation
Digital Literacy And Online Safety on internet
Introduction to the IoT system, how the IoT system works
Exploring VPS Hosting Trends for SMBs in 2025
Design_with_Watersergyerge45hrbgre4top (1).ppt
Sims 4 Historia para lo sims 4 para jugar
Slides PDF The World Game (s) Eco Economic Epochs.pdf
INTERNET------BASICS-------UPDATED PPT PRESENTATION
The New Creative Director: How AI Tools for Social Media Content Creation Are...
Tenda Login Guide: Access Your Router in 5 Easy Steps

Better WordPress Theme Development Workflow