• Home
  • New Entries
  • Popular Entries
  • Submit a Story
  • About

12 Essential Tips to Build Your First Wordpress Theme ...

I always wanted to contribute to the wordpress community by building a Wordpress theme and releasing it to public. After efforts of 20 days I just managed to finish my first Wordpress theme.

I always wanted to contribute to the wordpress community by building a Wordpress theme and releasing it to public. After efforts of 20 days I just managed to finish my first Wordpress theme. It was a great learning experience for me. During this process I ran into several issues, and it took considerable time to get it solved.


Creating Your First Wordpress Theme

Here I am listing some important points which you need to keep in mind before starting to build your own Wordpress theme, which might save you from such issues.

1) If you are not an experienced PHP developer, then don’t start from scratch, instead take default or classic theme to start building your own Wordpress theme.

2) Get your index.php file perfect as this is the most essential file you require in your Wordpress theme, rest of the files are optional. Also you need little code change in your index.php file to get the rest (category.php, archive.php, single.php etc.) of Wordpress theme files.

3) Always start with the new and latest installation of Wordpress while building your theme. It happened that I used my old existing Wordpress blog which had several edited core Wordpress files and as soon as I tried to use the developed theme on the newly created Wordpress blog, I ran into unexpected behavior and it took me several days to find out what went wrong.

4) Keep modular code as this will save your lots of time and effort while integrating your style code with PHP code.

5) Generically use PHP echo statements to find out which code is responsible for a particular output. But don’t forget to remove those echo statements at the end.

6) Don’t ever hardcode any URL, Variables values, Image path inside your Wordpress theme if you are planning to release this theme for the public.

7) Wordpress Template Tags are great time savers to theme developers as they always experiment with various tags to get the desired behavior.

8 ) There are several sites which provide big lists of Wordpress Loops. Do check out those lists and try to reuse available code as much as possible as this will save lots of development time.

9) If you have reused any code from any other theme or website, do check whether that code includes any deprecated functions/Template tags. Try to avoid using them and replace with alternate Functions/Template Tags.

10) Don’t include unnecessary PHP code, white spaces and blank lines in your Wordpress theme. This makes your theme heavy and leads to slower loading of pages. Take extreme care of white space before the start and end of php code tag, since it will result in those “Header already sent” nasty php warnings.

11) At the end if things go out of control, don’t fear to ask your question at Wordpress codex community

12) “Lesser the php code, fewer the database calls, faster the response time” keep this mantra in your mind.

Trust me you don’t need to be expert in PHP to build a Wordpress theme. We have great resources available at Wordpress official website. Do read the Theme Development guidelines on Wordpress.org before proceeding to theme development. I hope above points will be helpful to all the bloggers and developer who are planning to build their own Wordpress theme first time.

 View Full Story.
Posted at 10:19:42 am | Permalink | Posted in Blogging Tips  How to Blog  Wordpress Themes  Wordpress Tips  

Related Stuff

Improving security in Wordpress plugins using Nonces

Using a nonce (number used once) is the best way to protect your plugin against a cross-site request forgery (CSRF) hacker-attack. Nonces ...

10 New WordPress Plugins

This plugin enable admin to put up a splash page to show that the site is down for maintenance. Come with a timer to tell how long the site ...

WordPress Forums Plugins To Build Community

Growing your blog beyond publishing can be done quite easily by using WordPress Forums Plugins. Community growth greatly depends on ongoing ...

5 Annoying WordPress Plugins

Usually I attempt to share useful WordPress information but today, I thought we could have some fun with 5 of the most annoying WordPress ...

New releases for jQuery and Wordpress

The jQuery Database plugin takes your HTML tables and allows you to write a query against them similar to MS- or mySQL. I haven’t had ...

Be the first ... |Add your comment.

Your Comment ...

  Name (required)

  Email (required, hidden)

  Website


Top Stuff

Free Blogger templates Anime Themes

Wordpress Guestbook Generator Plugin

GeekLog

Zookoda

Introduction to blogs and blogging

jumpcut


Our Partners

Facebook Applications

Ajax Projects

Web 2.0 Sites

Webloglines

Human Development Handbook

Software Development Company

Ajaxlines

Stock Exchange Chat


About Webloglines

Webloglines is a project offers a comprehensive collection of blogging services, articles, themes and plugins from around the world. Whether you're looking to promote your own blog or find blogs on various topics, this site is for you.


Search


Topics

  • Adsense (9)
  • Blogging Tips (59)
  • Blogs Slides (25)
  • Blogs Websites (22)
  • Digg (8)
  • How to Blog (65)
  • Search Engines (2)
  • SEO (40)
  • WordPress Plugins (88)
  • WordPress Security (28)
  • Wordpress Themes (36)
  • Wordpress Tips (56)

© 2006 www.webloglines.com. All Rights Reserved. Powered by IRange