Feb 25

Wordpress Theme CSS File(stylesheet) Directory

By hakan

A few of my subscribers have been asking where they can find the wordpress theme stylesheet directory.


Normally it can be found at:

wp-content/themes/your_theme_name/

In wordpress codex it looks like this :

<?php bloginfo('stylesheet_directory'); ?>

OK we’ve found the stylesheet directory.

Where can we use it?

For example, you want to add a new image or banner ad to your sidebar.

To do that , we need to add an image like this :

<a href="#"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/ad_125x125.gif" alt="Advertisement" /></a>

/images is your theme images folder. When you have finished, it should look like the 125×125 image on the right.

Let me know how you get on . . .


Topics: Worpress Tricks |

Leave a Comment

Name:

E-Mail :

Website :

Comments :

Advertisement
Advertisement
Advertisement

Search

Donate

Please donate ReadyWPThemes

paypal

ADD TO FAVORITES

Add to Technorati Favorites