Posts Tagged ‘web design’

Create settings page for Wordpress theme

datePosted on 12:51, May 31st, 2008 by MillaN

Not many Wordpress themes have additional settings page where blog admins can adjust some of the themes settings. One of the reasons for this is hard to find examples describing in details what you need to do, although documentation has some basic info about that. Also, most themes don’t need such settings page, or is too hard to implement theme design that could be flexible to change like this.
[singlepic=27,210,200,,right]

Most themes can be customized by editing php and css files, but this can be a problem for most users, who use blog as tool, and don’t know much about web design. For them it would be much more convenient to have simple page in their admin panel and selection of options to tweak.

This article will show you step by step how to create options page for your theme, how to save settings and how to use them in your theme. Mine Starscape theme will be used as a reference in some points, so you might also want to download it and check for yourself what can you do with settings page.

Just to be clear, I am not going to create nothing fancy here, I will keep the code simple, so you can see what’s going on. If you want more details you can always take a look at Starscape theme code.

Requirements:

For this to work, you need to know:

  1. How to create regular Wordpress theme
  2. How to work with PHP classes

Read the rest of this entry »

Recent Posts

Random Posts

  • Starscape Draco 1.4.2 Update August 1, 2008

    Another small update. This one is focused on fixing the problem with WordPress 2.6...

  • Starscape Scorpius 1.5.3 Update September 5, 2008

    Small update to fix a potential problem with FavIcon noticed by the people at...

  • Starscape Draco 1.4.4 Update August 6, 2008

    After few days of (mostly) testing the fixes in different browers (control panel problems),...

  • Practical theme design, Part 1 July 7, 2008

    All over the internet you can find tutorials, help, samples on creating wordpress theme....

  • Blog Updated August 15, 2008

    I have reinstalled blog from scratch. Now blog uses latest WordPress 2.6.1. All plugins...

Advertisments