Advanced GIT usage

Posted by & filed under Dev Workflow.

Advanced GIT usage

… (third part and the end) 1. .gitignore for ignoring new files github.com/github/gitignore .gitignore can be in global user scope to affect all projects, there it could be called .gitignore_global_scope or similar, and it must be specified by excludesfile param in .gitconfig file. Copyright: Sean Molin 2. Ignoring tracked files git rm –cached file-name-here –cached […]

Common GIT commands for mistakes

Posted by & filed under Dev Workflow.

Common GIT commands for mistakes

… (second part after “Common GIT commands”). During using git, there would be times when we need to revert actions or get “backup” files from 1 of 3 trees into another tree, this is for undo/revert some changes that we made into files unintentionally (or deliberately but not need anymore). Copyright: nyuhuhuu 1. Checkout file […]

Common GIT commands

Posted by & filed under Dev Workflow.

Common GIT commands

GIT is usually hard to learn at the beginning. Below is a common workflow with commands that we use with git: 0. Initialize to create a .git folder inside working folder git init Working folder is real folder that we manipulate real files (add file, add folder, delete file, rename-move file, edit file content), it […]

5 steps we build a WordPress theme – step 3

Posted by & filed under Dev Workflow.

5 steps we build a WordPress theme – step 3

Step 3: Expand template with custom data After creating basic layout of page templates, we would need to expand them with some more parts to include other dynamic content such as template tag and other custom fields… We have to know about Loop for this purpose.  Copyright: Yoast WP Loop From the previous post, you […]

5 steps we build a WordPress theme – step 2

Posted by & filed under Dev Workflow.

5 steps we build a WordPress theme - step 2

3 parts to be built: Header-Footer, Menu-Sidebar and Body content One thing to remember is whichever part we are building, it needs a combination of functions (.php file), styles (in .css file) and asset mostly images. For example, if we are building a header template, we have to create header.php file and insert some php […]

5 steps we build a WordPress theme

Posted by & filed under Dev Workflow.

5 steps we build a WordPress theme

… and then expand it as we want with plugins, additional classes and external libraries. The most important aspect when creating a WordPress theme is determining whether it would be for what purpose. More complicated purpose we have, more steps and more efforts we have to do and pay. If all we want is a […]