WordPress Tips: Finding Your Graphics

Writing by Brick Marketing on Thursday, 29 of May , 2008 at 8:06 am

Many probably didn’t notice, nor care, that WordPress turned 5 on the 27th of this month, but then, WordPress was pretty quiet about too. WordPress tips still abound however, and today’s tip comes courtesy of Lorelle on WordPress and deals with graphics stored away from the WP content directory.

Lorelle, who is arguably the Grand Dame of WordPress, suggests the following solution for locating graphics with your blog site.

By using a feature called base href in the head of your header.php template file, you can establish the artificial “root” from which to look for file references. eg,

base href=”http://example.com/”

This single command instructs a browser to treat the sites root directory as the default directory. Lorelle has other WordPress tips on offer including working with the template files.

Blog and Website Design & Website Development Price Quotes – Compare and Save!


Category: WordPress tips

1 Comment

Comment by Shavkat from mobileStorm

Made Thursday, 29 of May , 2008 at 3:12 pm

Hmm, wouldn’t it affect other stuff of the blog driven by WP? Isn’t it dangerous to do this trick with an existing blog, I wonder?

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

Blog Marketing Journal


Blog Marketing Journal is a Blog that discusses How to Build, Write Market and Promote a Business Blog for the new and advanced reader.
Learn more about this blog.