WooThemes Modding Series Part 2: Remove Stuff We Don’t Need
Posted on 28. Nov, 2009 by admin in Tutorials | 0 responses
In part 2, we are going to declutter – removing stuff we don’t need in the theme.
Removing Items in Theme Options
We looked at the theme options and figured we don’t need two things:
- The Theme Stylesheet selection (as we are going to define our own style).
- The ‘About You’ option (as we thought it could be better replaced by the blog tagline).
1. Go to includes/theme-options.php.
2. On line 50-55, you could see there is an array of options for “Theme Stylesheet”. Remove it.

3. On line 132-138, there are some arrays for ‘About You’ and ‘Your Bio’. Remove it too.
4. Go to your theme options page and refresh. You will see these options are no longer there.
5. Go to styles/default.css or whichever styles you wish to keep. Copy all the codes and paste it under style.css.
6. Remove all the ’styles’ directory. Now you have all your CSS under one file (style.css).
Replacing ‘About You’ with Tagline
Since we wanted to replace the ‘About You’ option with the WordPress default tagline (which can be configured at ‘Settings->General’), there are still some work to do.
1. Go to header.php.
2. Go to line 35, replace these code:
35 | <?php echo stripslashes( get_option( 'woo_bio' ) ); ?> |
With these code:
35 | <?php bloginfo('description'); ?> |
3. You should see the tagline showing up in your theme.

We just replaced the theme option with the ‘bloginfo‘ template tag. To learned more about template tag, refer to this WordPress documentation.
So, that summed up the Part 2 of the WooThemes Modding Series. Next up, customizing look and feel.




Recent Comments