Referencing an Image HELP

I have saved images and javascript inside the theme folder (which I named OPLETSGO). The theme overall is not changed from Susan Smith - Birdseye 2, except that I added javascript inside assets/java and images inside assets/images (I created the java folder).

I used the following code to refer back to the images:

<html>
<body>
<img src="files/OPLETSGO/assets/images/1.jpg"></img>
</body>
</html>

BUT IT DOES NOT WORK. 

Please help me. Thank you for your time.

2,947 Views
Message 1 of 12
Report
1 Best Answer

Best Answer

The path to anything in the Assets folder will always be /files/theme/filename.extension. If you make a folder in assets called "myfolder", then it would be /files/theme/myfolder/filename.extension.

View Best Answer >

2,879 Views
Message 13 of 12
Report
11 REPLIES 11
Square

Hi @Bobll Can you please post a link to the page with the code? What are you trying to change or display? Thanks! 

2,936 Views
Message 13 of 12
Report

Hey! Im trying to display a image from the theme file. My website is bingbongtest.weebly.com, you can see a broken image file right under the buttons. What do you mean by the source link?

2,933 Views
Message 13 of 12
Report
Square

Thanks for the website link. Is there a reason why you are using code and not the image element? I apologize in advance for my ignorance, but I'm not super versed with html/css edits and tricks. 

2,928 Views
Message 13 of 12
Report

Yeah, I could use the image element, but this is just a test to use html for referencing javascript files inside theme. I basically want to know to refer to infomation contained inside the  folder using embeded code.

2,927 Views
Message 13 of 12
Report
Square

Thanks for clarifying. There may be a user or two on here that can give you some more information. 

@BJ

@MTpockets

@bobafett

2,924 Views
Message 13 of 12
Report

@Bernadette Thank you for your quick responses and willingness to help Smiley Wink. I hope we can resolve this issue effectively.

2,923 Views
Message 13 of 12
Report
Square

Sure thing. Smiley Happy 

2,922 Views
Message 13 of 12
Report

@MTpockets 

@bobafett 

Please help me with the referencing link. Thank you!

2,882 Views
Message 13 of 12
Report

Best Answer

The path to anything in the Assets folder will always be /files/theme/filename.extension. If you make a folder in assets called "myfolder", then it would be /files/theme/myfolder/filename.extension.

2,880 Views
Message 13 of 12
Report

It worked! Thank you!

2,385 Views
Message 13 of 12
Report

Nice!

2,384 Views
Message 13 of 12
Report