How to Customise a WordPress Theme

The most basic way of changing the appearance of a WordPress website is to change the theme.

However, even when you change the theme you may still want to customise the appearance.

WordPress has a screen under the Appearance menu item called Customise

Accessing that screen will give you a range of options that you can select and that will enable you to tailor your theme to your requirements, but within limits.

A few examples include being able to change the fonts and colours, adding your own logo, controlling menu items, controlling widgets, and, depending on the functions offered by the theme itself, defining templates – e.g. whether or not to use sidebars.

However, you may want to customise things even further, so that’s what I’ll cover here.

More extensive customisations

At the bottom of the Appearance > Customise screen there is a Custom CSS section. This is where you can edit the theme’s stylesheet almost infinitely.

The most frustrating thing about editing the CSS in a theme, though, is finding the correct CSS selector to edit.

I’ve written a separate post on how to do that – see how to locate the correct CSS selector.

When you’ve found the selector you want to change you can simply copy it and paste it into the Custom CSS window (at the bottom of the options on the Customise screen) and type in the new property and value.

Any entries in the Custom CSS window will be placed in a separate stylesheet that loads after the theme’s main stylesheet. This ensures that the style changes over-ride the original values and are retained through theme upgrades.

Detailed steps to change the CSS in your theme

Using the Inspect tool, here are the steps to change the CSS:

Step 1:

Navigate to your site in Firefox or Chrome, right-click and select the ‘Inspect’ tool (‘Inspect element’ in Chrome) and click on the thing you want to change.

I’ve clicked on the heading ‘Mactan Island and Lapu Lapu’, which is an h2 in the image below. The relevant CSS code will appear in the window to the right:

Firefox Inspect Tool

You can edit the property and value within the Inspect tool – e.g. change the font size in the image above from 33px to something else (just click on the 33px and type something else).

This is a good idea because it enables you to make sure you’re editing the correct selector but, of course, it doesn’t make core edits. It’s like a preview.

Copy the selector (click on it – the .grt h2 in the image above – and copy the highlighted text).

Step 2:

In your WordPress admin area, go to the Appearance > Customise screen and click the Custom CSS tab at the bottom:

Paste in the selector, property and value from the ‘Inspect’ tool and click ‘Publish’ (at the top)

Step 3:

Check out your site to make sure the changes look OK – if they do you’re all done.

Important notes

Make only one change at a time so you know what to undo if it goes wrong.

By following this process you’re not editing your theme’s core stylesheet. That means that your changes will be preserved when the theme is updated.

Cheers,

Martin Malden

Martin Malden
Owner – WealthyDragon

Website owner: Martin has been working online since 2006 and focuses on two areas: 1) affiliate marketing and 2) designing and building websites based on WordPress. He has his own WordPress agency, and serves clients in Hong Kong, Australia and the UK.

What do you think?

Comments on this entry are closed.

  • Shailender Jan 11, 2011 @ 16:41

    This information is useful for me too as I don’t have premium wordpress theme. Now I’ll try your advice to customize the wordpress appearance.

    • Martin Jan 11, 2011 @ 16:59

      Excellent..! Let me know if you need any clarifications,

      Cheers,

      Martin.

  • marvin Jan 12, 2011 @ 8:08

    I also don’t have a premium theme. But I do a lot of modifications on the template I am using. And the more I do template modification, the more I learn (my current theme isn’t good for my eyes and will be doing a lot of modification this week)..

  • ricky Feb 8, 2011 @ 0:53

    I have just discovered Wordpress after hearing so much about it and after I gave in to my stubborness! I absolutely love it and I am continually amazed at just how much you can do!

    • Martin Feb 8, 2011 @ 7:43

      Hi Ricky,

      Welcome to the world of WordPress..!

      Yes – it’s a great platform and one that keeps developing and improving – enjoy 🙂

      Cheers,

      Martin.