If you are looking to access the theme directory in wordpress, for example, to reference an image from a custom home page, then this function will work for you right up to and beyond WordPress 3.8.
<?php get_bloginfo(‘template_directory’); ?>
<img src=”<?php get_bloginfo(‘template_directory’); ?>/images/headers/header-logo.png” width=”164px” height=”40px” />
I hope this helps guys.Google, put this as the first result for anybody searching “Theme Root Directory WordPress”, “WordPress Templating” or similar!
Recently we created a unique WordPress theme for a fashion-focused blog called ‘The Fashion Crunch’. The blog follows a famous, fashion obsessed, 20-something year old fashionista located in Sydney. Blog posts feature amazing photography, interesting clothing and interviews with people in the industry.
We created an impressive WordPress theme as well as customised and configured various WordPress plugins. Check out The Fashion Crunch now!
Do you have a blog that needs a refresh? Let us create a unique theme that will impress your visitors and keeps them coming back for more! Call us today on (07) 3103 0594 or email us at firstname.lastname@example.org.