WordPress Tips: Finding Your Graphics

Writing by Blog Marketing Journal on Thursday, May 29, 2008 Comments (1)

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.

Comments (1)                      Category: WordPress tips                      

Read similar posts in 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?

Sorry, the comment form is closed at this time.

Blog Marketing Journal is a Blog that discusses all aspects of blog marketing, blog SEO and blogging management tips.