One thing is to review themes. Another is to get it through the needle’s eye. Here’s the quest.
Hack a theme that’ll meet all requirements and WordPress standards.
The aim of the theme is to teach how to write a theme.
In this way the theme will be usefull not only for me, but for anyone who wants to learn how to make a theme.
The core-WordPress themes don’t use preprocessors and similar. They want a clear and easy to read code. The aim of the core themes is to teach the art of theming.
I’m working on a LAMP server. So the code and methods will be easy to follow for any *NIX user. But we should not forget Windows users. Here’s a challenge. I don’t use Windows any more.
However in the business rapid development is often used. My approach is to develop a theme with Nodejs tools, such as:
Bower (package manager)
Sass (CSS preprocessor)
Gulp (compiling, automatic test)
Github will play a major role for versioning.
The theme is an attempt to follow WordPress coding standards. Theme review tools, such as debugger plugins and code sniffers will be used. So will the theme debugger plugin. And of course the debugging features in WordPress must be activated. Edit these lines in wp-config.php:
// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
// Disable display of errors and warnings
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
// Use dev versions of core JS and CSS files (only needed if you are modifying these core files)
define( 'SCRIPT_DEBUG', true );
Multimedia designers tend to love animations. I’ll make a theme with many creative features, such as:
If your’re running a WordPress blog or similar “WordPress for Beginners” is a source of inspiration and knowledge. For web developers: this book is not for you!
Focus on Beginners
Perhaps I should have known: “… for beginners” may just mean “for beginners”. I bought the bookazine. At home it was opened. Not much about code here. Most chapters focus on the GUI usage.
What the web developer may find
Towards the end however things get more interesting, that is: for the web developers. There’s a chapter about the WP-CLI . And some tutorials. Anyone with a little knowledge of CSS would be able to follow the tutorials.
The bookazine’s focus on the end user makes sense. This book is what most people need in order to get up and running with any WordPress site – especially if you run a blog or similar on wordpress.com.
There’s good advice on how to choose plugins and themes. Twenty different themes are reviewed. Theme customization is introduced.
Here things get fun: fading buttons, hovering slide out menus, and so on.
The strength of the book is a clear focus on the WordPress beginner. The text does what it says.