How to reference the theme directory root in Wordpress

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

Something I have to hunt for every time I build a Wordpress theme is the method of referencing images and other elements placed within the theme directory I’ve created. The code above is the means of doing this.

Published on April 30, 2007

Filed in General, Web design, Wordpress

Comments are closed.

Possibly related posts

Guy sorry to hear that. My thoughts are with you and your family. Take it easy.

About GuyWeb

This site is being redeveloped. Apologies if things don't look or act as you expect. I'm spending little bits of free time making some much needed changes.

GuyWeb is the personal website of Guy Carberry, a web designer based in Buckingham, England. He currently works full-time as a web designer for the Open University. He also undertakes interesting freelance projects where time allows. You can contact Guy by emailing Guy at this website's address.

By date