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,993 Views
Message 1 of 12
Report Inappropriate Content
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,925 Views
Message 13 of 12
Report Inappropriate Content
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,982 Views
Message 13 of 12
Report Inappropriate Content

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,979 Views
Message 13 of 12
Report Inappropriate Content
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,974 Views
Message 13 of 12
Report Inappropriate Content

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,973 Views
Message 13 of 12
Report Inappropriate Content
Square

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

@BJ

@MTpockets

@bobafett

2,970 Views
Message 13 of 12
Report Inappropriate Content

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

2,969 Views
Message 13 of 12
Report Inappropriate Content
Square

Sure thing. Smiley Happy 

2,968 Views
Message 13 of 12
Report Inappropriate Content

@MTpockets 

@bobafett 

Please help me with the referencing link. Thank you!

2,928 Views
Message 13 of 12
Report Inappropriate Content

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,926 Views
Message 13 of 12
Report Inappropriate Content

It worked! Thank you!

2,431 Views
Message 13 of 12
Report Inappropriate Content

Nice!

2,430 Views
Message 13 of 12
Report Inappropriate Content