Tutorial: How to create a minimalistic wordpress theme from scratch?

Many people think creating a wordpress theme from scratch is quite hard, but guess what, its very easy to do it. Few years ago i posted a tutorial about easiest way to create a wordpress plugin, and i got so many responses. Today its time for a theme. I am going to show you the…

Coding Guidelines for WordPress Theme Developers

I have reviewed several wordpress themes submitted to wordpress.org. I have seen that most theme developers who code the theme, repeat the same common mistakes again and again. Back in the wordpress team, we follow strict guidelines and best coding practices, which is why we go through every bit of code and every file in…

Thinlines – Free wordpress theme

Thinlines is a glossy wordpress theme unlimited header colors, and nice grey gradients thin 1px border lines.  This theme was designed with visual presentation in mind by using extensive use of full width site layout to present content. It is free and released under GPL. Update: This theme has been approved by WP Team. You…

WordPress – How to use core built in Color picker?

I am following up with my previous tutorial on how to implement IRIS colour picker for wordpress.  Since IRIS is already bundled with wordpress, we improvise and make use of the colour picker that already comes as built in inside wordpress core. This tutorial is based on New colour picker in WP 3.5  We implement…

WordPress – How to remove comments off in posts?

Quite often for theme developers, it could be frustrating to show “comments off” in blog posts.  The reason why comments off appear is because of this comments code, which shows the comment link and total count. <?php comments_popup_link(‘No Comments’, ’1 Comment’, ‘% Comments’); ?> It is very simple to fix, just use the comments_number() function…

WordPress – Displaying more tags and trimmed excerpt

I was working on a wordpress blog posts page, i faced a tricky situation. Many blog users dont like fixed trimmed length content and they want to display their own trimmed versions, using <!–more–> . If the post has <!–more–> tag, display it or if no more tag is present, just display the_excerpt() a trimmed…

WordPress Security – Data validation and sanitization

Lets talk a bit about validation and sanitization needed for wordpress themes and plugins. WordPress security is very often overlooked by many wordpress plugin and theme developers.  Imagine your plugin runs unsafe in millions of websites. It has been said over thousand times “Never trust user input” but  have you implemented the security measures? Before…

WordPress – How to add theme options sylesheet in admin area?

Adding a style sheet to your backend theme options page is easy and can be done with just a few lines of code. This code will only work in your theme options and not the whole wordpress admin area. The key here is use to use admin_enqueue_script() to add the stylesheet. To get this code…

WordPress – How to add reset button in theme options page?

I was working on a wordpress theme project, where i implemented theme options page. Thought that there needs to be a feature to reset all theme values, when a button is clicked. It didn’t work, when i put-up a Reset button, near the submit button on the same form in the wordpress. It turns out…

Softlights – Free wordpress theme with unlimited colors

Softlights is a fully customizable wordpress theme with unlimited colors through color picker, ideal for content hungry websites. It is simple, easy to use theme and doesnt dazzle you with setting hundreds of theme options. Pick the colors you want for header, background, footer, widgets, showcase box and go live within a minute. The theme…