Ads By Google

How To Use The Custom Stylesheet In Your WordPress Theme

Lots of more advanced WordPress Themes these days comes with an extra css file called the custom stylesheet. You will find this file along the css stylsheet file when you open your Theme editor, providing of course, that your Theme has it included in the Theme file. Premium Themes like the Thesis Theme has this file built into the Theme for easy customizations.

The custom css file as the name suggest is for people who wants to change the look and feel of their Theme without having to change anything in the core css stylesheet. Thus if customizations have been done through the cutom css, and if the results are not satisfactory, users can simply delete whatever codes they have added in there and the Theme will revert back to it’s original look.

To change or add any extra styling in the custom css file, the magic word is dot custom (.custom). Placing this word in front of any stylesheet selectors will overwrite the styling attributes declared in the original stylesheet. For example, if the looks of your page layout is declared like this in your original sytlesheet,

#page { background-color: white; border: 1px solid #959596; text-align: left; }

and you want to change the look of your page, all you have to do is copy and paste those codes into your custom css and then add the magic word, .custom in front of the hash tag like this:

.custom #page { background-color: white; border: 1px solid #959596; text-align: left; }

After that you can change whatever values you want and if you do not like it, change again and again until you are happy. If not, just delete that line and it will revert back to the original look. You can also do the same if it is a class selector with the dot in front instead of the hash symbol.

It also works similarly of you want to add any new styles to your Theme.

Share This Post
Ads By Google
 

Free Updates

Subscribe to receive Free WordPress Theme Tips, Reviews and Discount Codes

Related WordPress Theme Tips

Using Thesis Custom Codes In Neoclassical ThemeI’m getting a little over obsessed with the Thesis Theme. So much so that I have even modded this theme here, which is the Neoclassical Theme to look nearly like...

Video Tutorial – Working With WordPress CSS StylesheetThe file that gets the most attention when you are modding a WordPress Theme is the CSS stylesheet. It is like the brain of the whole Theme and whatever is...

Create Your Own Custom WordPress ThemeSo, you want a Custom WordPress Theme. A Theme that looks like no others. A Theme unique only to your blog. Is that possible and can you create one all...

Use Fancy Custom Fonts For Your WordPress BlogsSee the fancy fonts that my blog title is using? I have been trying to do this for, like ages and ages but without any luck. I have also tried...

One Column Neoclassical ThemeSome bloggers prefers a Theme which has only one column for their contents and nothing else. They want no distractions for their readers and honestly, from a blog reader’s point...

Those who found this page were searching for:

  1. custom stylesheet wordpress home
  2. free stylesheets for wordpress
  3. how to add a custom stylesheet to a wordpress theme
  4. WORDPRESS STYLEsheet white color codes
  5. wordpress customising stylesheet # hash
  6. custom stylesheet wordpress
  7. how to apply stylesheet in a wordpress new theme
  8. add extra css file to wordpress
  9. wp custom stylesheet
  10. WordPress link to custom stylesheet