How To Modify a WordPress Theme's Colours - Part 1


Published on

  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

How To Modify a WordPress Theme's Colours - Part 1

  1. 1. <ul><li>To Modify a WordPress Theme’s Colours – Part 1 </li></ul>
  2. 2. <ul><li>Part one of our ‘How to Modify a WordPress Theme’s Colours’, see us looking at the colour codes. </li></ul><ul><li>In part two, we will look at the image files and give you some useful GIMP software tips. </li></ul><ul><li>If you want to hire a WordPress designer , please contact us. </li></ul>
  3. 3. <ul><li>Modifing a Theme’s Style.css Colours. </li></ul><ul><li>If you are using a Theme that wasn’t specifically created for your website, chances are you might want to change a colour or two. </li></ul><ul><li>This is easily done and hopefully shouldn’t take you too long. </li></ul>
  4. 4. <ul><li>Finding out the colour code for the colour you need to change: </li></ul><ul><li>If you don’t know your way around a style.css file, you can use the GIMP to help you identify the colour code, that is probably being used within the style.css file. </li></ul><ul><li>It is rare that a web designer is using names such as blue, red, green etc, but instead a hexadecimal colour code. </li></ul>
  5. 5. <ul><li>1. Install the GIMP. </li></ul><ul><li>2. On a Windows system select ‘Print Screen’ on your keyboard and either paste the image into GIMP, else on a linux distribution, open the screenshot image with the GIMP. </li></ul><ul><li>3. Select the ‘Colour Picker Tool’ from the left-hand toolbar and then select the colour you wish to change in your image. </li></ul>
  6. 6. <ul><li>4. That colour will now be shown in the toolbar, double-click on the colour to open a box that displays the colour code. </li></ul><ul><li>5. Copy and paste the colour code into a notepad file. </li></ul>
  7. 7. <ul><li>Finding out your new colour code: </li></ul><ul><li>1. Double-click on the top box of the two colour boxes in the left-hand toolbar of the GIMP software. </li></ul><ul><li>2. You can now use a colour selector to help you find the right replacement colour. </li></ul><ul><li>3. Note down the colour code into a notepad file. </li></ul>
  8. 8. <ul><li>Make the style.css file writable: </li></ul><ul><li>1. Via FTP browse to your Theme directory. i.e. /wp-content/themes/yourtheme/ </li></ul><ul><li>2. Find the style.css file, right click and change access settings to 777. </li></ul><ul><li>3. Disconnect from the FTP server. </li></ul>
  9. 9. <ul><li>Modify the Style.css file: </li></ul><ul><li>1. From your notepad highlight and copy the colour code for the colour you wish to change. </li></ul><ul><li>2. From the WordPress dashboard select ‘Editor’ from the ‘Appearance’ selection on the left. </li></ul><ul><li>3. Then select ‘style.css’ from the right hand list of files to edit. </li></ul>
  10. 10. <ul><li>4. Now press ‘CTRL-F’ to bring up the search option. Paste the colour code into the search box and find the colour. Make sure you are changing the right div layer as there could be many instances of the same colour, and perhaps you don’t wish to change all. </li></ul><ul><li>5. Now from your notepad file copy the colour code for you new colour, and replace the old colour code in the style.css file. </li></ul><ul><li>6. Once finished select ‘Update File’. </li></ul>
  11. 11. <ul><li>Make the style.css file read-only: </li></ul><ul><li>1. When you’ve finished edit the style.css file you will want to make it read-only. So connect to your FTP server and find the style.css file in the correct theme directory at /wp-content/themes/yourtheme/ </li></ul><ul><li>2. Right click on the file and change access settings to 644. </li></ul><ul><li>3. Disconnect from your FTP server. </li></ul>
  12. 12. <ul><li>Part two of ‘How To Modify a WordPress Theme’s Colours‘, follows. </li></ul><ul><li>If you want to hire a WordPress website designer , please get in touch. </li></ul>