Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Help putting a picture on a WP widget...
Old 06-26-2009, 11:48 PM Help putting a picture on a WP widget...
labecs's Avatar
Junior Talker

Posts: 4
Name: Rebeca Rambal
Trades: 0
I'm hoping someone can help because I'm stuck... it's a little bit of a code problem.
I put some text widgets on my sidebar, and I put pictures there, but I don't know what I did in the code that some of the pics only show on the home page sidebar but not on the rest of the posts. One of them works fine, but the other two don't. Can someone give me a hand? I'm just learning how to use code, and this is going over my head...

http://www.yourpetsuniverse.com/
See the two samlls pictures on the sidebar, and then go to any of the posts, and they disappear... what am I not doing or doing wrong?

This is the code:

FIRST

<div><img src="images/news/becs.jpg" width="50" height="50" align="left" />DOESN'T WORK ON THE REST OF THE POSTS</div>

SECOND
<div><img border="0" src="/images/items/condo image.jpg" width="140" height="160"align="left" /></div><a href="http://www.yourpetsuniverse.com/for-the-home/perches-and-scratchers/"
target="_blank">THIS ONE WORKS FINE</a>

THIRD
<img src="images/news/Pasha.jpg" alt="Pasha on Twitter" width="70" height="65" align="left" />
<a href="http://www.twitter.com/ImPasha/"
target="_blank"><br />DOESN'T WORK ON OTHER POSTS EITHER</a>
labecs is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-27-2009, 12:17 AM Re: Help putting a picture on a WP widget...
GeekSpecialties's Avatar
Super Talker

Posts: 132
Name: Leonard
Location: Minnesota, USA
Trades: 0
You have specified the path to your images differently.
And they are relative to the page, so when you load a different page, in a different directory the path to the images change when you have them defined as relative to the document (images/some-folder/myimage.jpg)

It looks like you have the images folder in the root of your website structure. You can define a root relative path, so when a page from a different directory loads the path to th image is the same.

Here is a root relative path. No matter what folder the page is in, this path always starts at the root of your website, then in the images, then in the items etc. Spcified by the preceeding /:
/images/items/condo image.jpg

This will always be: yourwebsite.com/images/items/condo image.jpg

This is a relative file path. No preceeding / . The path starts in the same folder the page containing the link is in.
images/news/Pasha.jpg

This wil always be: yourwebsite.com/folder-containing-page/images/news/Pasha.jpg

For more information Google relative and absolute path.
GeekSpecialties is offline
Reply With Quote
View Public Profile Visit GeekSpecialties's homepage!
 
Old 06-27-2009, 12:35 AM Re: Help putting a picture on a WP widget...
labecs's Avatar
Junior Talker

Posts: 4
Name: Rebeca Rambal
Trades: 0
Wow!! How could I not see that? Thank you so much.... now I get it
labecs is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Help putting a picture on a WP widget...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.33544 seconds with 12 queries