Repository: Ataurr/Themeforest-Wordpress-theme-development-workflow
Branch: master
Commit: fc167386fee2
Files: 1
Total size: 8.4 KB
Directory structure:
gitextract_90sx628p/
└── README.md
================================================
FILE CONTENTS
================================================
================================================
FILE: README.md
================================================
# A GOOD WORKFLOW SAVES YOUR TIMES & MONEY.
## Development Process
Develop the entire website in localhost
Commit changes to git and push to Bitbucket or github.
### 1. Starter theme
Make Your Own Starter theme based On [Underscores](http://underscores.me/) or Twenty Seventeen (New version of Wordpress default theme) and Underscores (made by Automattic)
After Complete your starter theme save this on [GitHub](https://github.com/) or [Bitbucket](https://bitbucket.org/).
#### Theme Option Framework
Great way to include theme customization options that non-developers can manage and understand. Many users don’t have a clue what CSS is – but they can use tabs, toggles, drop -downs and color pickers.
Create own custom framework are time consuming. So we prefer readymade Option framework Like
* [Unyson](http://unyson.io/)
* [Redux](https://reduxframework.com/)
* [Codestar](http://codestarframework.com/)
* [WPOnion](http://wponion.com/)
#### Customiser Framework
Provides a simple and intuitive API for registering Customizer settings, including advanced control types. Automatically sanitizes settings based on the control type.
* [Kirki](https://aristath.github.io/kirki/)
#### Gutenberg Helper
* [Creat Guten Block](https://github.com/ahmadawais/create-guten-block)
* [Gutenberg Fields Middleware](https://github.com/rtCamp/gutenberg-fields-middleware)
* [Gutenberg Boilerplate](https://github.com/ahmadawais/Gutenberg-Boilerplate)
* [Gutenberg Examples](https://github.com/WordPress/gutenberg-examples)
#### Page Builder
Page builders allow you to create, edit, and customize your site layout without writing any code.
Most Popular Page builders:
* [Visual Composer](https://codecanyon.net/item/visual-composer-page-builder-for-wordpress/242431?ref=XpeedStudio)
* [SiteOrigin](https://wordpress.org/plugins/siteorigin-panels/)
* [Unyson](unyson.io)
* [Elementor Frontend builder](https://wordpress.org/plugins/elementor/)
* [Tailor Frontend builder](https://wordpress.org/plugins/tailor/)
* [King Composer](https://wordpress.org/plugins/kingcomposer/)
### 2. Start Work For New Project
Cloning your starter theme (or a fork of it) into ```/wp-content/themes/``` folder
### 3. Use task runner Like Grunt or gulp
For What ?
* Prefixes to use in CSS
* Compressing my images
* Linting and minifying JS files
* Creating sprites
* Constantly refreshing my browser
* Create .pot file for translation
#### GULP RESOURCES
* [Getting started with gulp](http://markgoodyear.com/2014/01/getting-started-with-gulp/)
* [An Introduction to Gulp.js](http://www.sitepoint.com/introduction-gulp-js/)
* [Using Gulp for WordPress Theme Development](http://mattbanks.me/gulp-wordpress-development/)
* [WordPress theme development with Gulp, Bower, and Sass](http://synapticism.com/wordpress-theme-development-with-gulp-bower-and-sass/)
* [Youtube](https://www.youtube.com/results?search_query=how+to+use+Gulp)
* [WPGulp](https://github.com/ahmadawais/WPGulp)
#### GRUNT RESOURCES
* [wordpress-grunt](https://github.com/dtbaker/wordpress-grunt)
* [Automated WordPress Deployment with Grunt](https://timrourke.com/blog/tutorials/automated-wordpress-deployment-with-grunt/)
### 4. Use Preprocessor Like Sass Or Less
* [getting-started-with- sass](https://scotch.io/tutorials/getting-started-with-sass)
* [Youtube](https://www.youtube.com/results?search_query=how+to+use+Sass)
### 4. Use git
Why Use Git:
* Never have to remember which files you changed
* Super easy to keep all copies in sync
Git Resource:
* [Learn Version Control with Git](http://www.git-tower.com/learn/)
* [git - the simple guide](http://rogerdudler.github.io/git-guide/)
* [tryGit](https://try.github.io/levels/1/challenges/1)
* [Youtube](https://www.youtube.com/results?search_query=how+to+use+git)
Desktop Tools
* For Github : [Github for desktop](https://desktop.github.com/).
* For bitbucket: [Sourcetree for bitbucket](https://www.sourcetreeapp.com/)
#### WORDPRESS-SPECIFIC GIT RESOURCES
* [Version Controlling WordPress](http://roybarber.com/version-controlling-wordpress/)
* [A WordPress & Git Workflow](http://plausiblethought.net/wordpress-git-workflow/)
* [WordPress Development and Deployment With MAMP, Git and Dropbox](http://code.tutsplus.com/tutorials/wordpress-development-and-deployment-with-mamp-git-and-dropbox--wp-25718)
### 5. Use Trello
Theme development is managed with [Trello](https://trello.com/).
Trello is a task management app that gives you a visual overview of what is being worked on and who is working on it.
The team sets about beta testing the theme. A list of bugs, tweaks and solutions is compiled, a hackathon is scheduled, and everything is completed by the developer.
http://lifehacker.com/how-to-use-trello-to-organize-your-entire-life-1683821040
### 6. Clean Up Your Source Code
* Messy source code is a developer’s nightmare. It makes finding things difficult, and it makes it extremely difficult for anyone else to work with it.
* Indent nested lines.
* Indent tabs always.
* Be consistent with formatting.
* Include concise, descriptive comments.
* Mind your line breaks.
* Strive for clean markup.
### 7. Keep In Mind While Developing a theme:
Add this to wp-config.php ```define( 'WP_DEBUG', true );```
##### Escape Everything
```php
// Use anytime HTML element encloses a section of data:
echo esc_html( $no_html );
// Use on all URLs, including those in the 'sr####c' and 'href' attributes of an HTML element:
// Use for inline Javascript:
// Use for an HTML attribute: