A SASS mixin can save you from writing hundreds of CSS-lines in your WordPress theme. One of the great features of SASS is mixins. They resemble a function in ordinary programming. You create a series of commands, and pass certain variables. Then you don’t have to write the same code over and over again. The _S… Continue reading Use a SASS in WordPress Themes
Here’s the challenge for the class: Create a repo on Github. Create a WordPress theme from scratch. During the six hour lesson files, such as: functions.php header.php footer.php style.css index.php was presented one by one. The students had to create their own version of a WordPress theme on Github. As far as I could see there… Continue reading Learning WordPress Themes from Scratch
The concept “minimal viable production” is a common concept in agile projects. I’m working on a minimal viable WordPress theme. The rules are: The theme must validate according to WordPress Standards. The design is not important. So it’s all about function then. You can follow the development of the theme here (petj-mvp). The design is inspired… Continue reading Working on a minimal viable theme
Process notes: How to make and debug a WordPress theme Toolbox Debugging in WordPress. Debug bar. Developer Docs. Theme Developer Handbook: The Loop in Detail. Costum Headers. Costum Logo. Template file checklist. Automation (Nodejs) Nodejs is a must in rapid development. Here are some essential tools. SASS Much template work is tweaking the CSS. A… Continue reading Theme Development Process
I’m working on a didactic template with these features: Bootstrap (for responsive web design) Wp-navwalker (for the menu) During the development I’ve used SASS and Bower for rapid prototyping. The theme was validated by the theme check plugin.
PHP Code sniffer is a code validator. In the tutorial: “Using PHP CodeSniffer With WordPress: Installing and Using the WordPress Rules” Tom McFarlin explains how to install the codesniffer with WordPress-specific sniffs.
Then Tom McFarlin gives a demo on a phpcs on the plugin Hello Dolly:
phpcs --standard=WordPress hello-dolly
I have installed the sniffer following the suggestions in McFarlin’s tutorial on a LAMP server with WordPress. So the tool’s in the box.