Inspecting Our Website

Every element of our website (text, images etc) is styled with CSS. What we need to do is find out what those different styles are called so that we can change their properties in our child theme.

I'd like you to open up a couple of tabs in your browser, one loaded up with your website, the other with the Wordpress admin area. In the admin area, navigate to Appearance >> Editor.

Assuming that you've done everything correctly so far, you should see the code we pasted in a few steps ago. We can edit the file directly in the Wordpress Admin area which is great.

Now, switch over to the other tab, the one with your website loaded. My website currently looks like this:



Pretty basic, I know. But let's change a few things. Let's make it really simple to start with - we'll change the colour of the site header.

Using the Web Inspector

The web inspector is very easy to use in Chrome, Chromium or Safari (and Firebug if you're using that). All you need to do is to right-click on an element of the page (an element being some text, an image, basically anything) and choose Inspect Element from the drop down menu.

Note: you can use my website to practice on if you like.

So, right click on the header text as shown below and choose Inspect Element.





The web inspector will pop up at the bottom of the screen:





Now don't be scared - it's actually fairly simple. The CSS code that controls the look of the header are those over on the right hand column.

Now all we have to do is look for the section that controls colour, and look, here it is!





The magic of this web inspector actually lets us change CSS values right within the editor. So, where it says 'black', just click on it and type in something like 'purple'.





And look what happens:





If you scroll down the page you'll find other controls, such as the line height and size - you can play with those too:







In the next chapter we'll look at how to make those changes permanent and lasting!



Join the Discussion
Write something…
Recent messages
firstburn Premium
can u create a forumn page in your wordpress site
Reply
mhamilt Premium
Yes, although it gets a bit tricky. I'm not sure why you'd want to, the comments section on blogs is usually sufficient for user interaction. This plugin may help: http://wordpress.org/extend/plugins/mingle-forum/
Reply
firstburn Premium
i have a blogg i left 4 yrs called breaststrokeforbegginers.wordpress.com because i could not put and adsense code to it. i think with this tutorial i might start using wordpress again.
Reply
Kyle Premium Plus
Wordpress is definitely a wonderful platform...it is not perfect, but it is has come a long way and it sure beats the old days of building websites from scratch!!
Reply
mhamilt Premium
Yeah, I tried Wordpress even just three years ago and hated it. Now I couldn't imagine using anything else! And it gets better on a very regular basis.
Reply
Denisara Premium
firstborn - you could not put adsense codes into breaststrokeforbegginers.wordpress.com because you were using the free wordpress version (yoursite.wordpress.com). If you owned your site it would be yoursite.com. You can't monetize a free wordpress, or blogger etc. You have to 'own' your site to be able to do that.
Reply
Kyle Premium Plus
Excellent training Mark...this is going to be valuable for many!
Reply
BIS Premium
Very useful tutorial which is very easy to follow.

Thanks

Beverley
Reply
mhamilt Premium
Thanks Beverley!
Reply
SquidooSlfMstr Premium
Well written tutorial, Mark! Do you know if you do your site customization on the parent theme, do you lose all that when the theme owner makes updates? Is this why you would want a child theme?

Thanks again for doing this tutorial.

Charlie
Reply
mhamilt Premium
Yes, this is one of the reasons why child themes are good - you do lose any changes made if the theme you're using is updated.
Reply
Top