Images in the custom html block

Hello everyone,

I want to add an img-element in a custom html block.

In my theme css, the background of the splash page is set via the url-function "url(images/default-bg.jpg)" which refers to the default-bg.jpg located in the theme in the section Objects, folder images.

In accordance to that I created a folder photography in images and uploaded a thumbnail.jpg.

On my site I added a custom html block containing an img-element:

<img src="/images/photography/thumbnail.jpg" alt="lorem">

Published the site but the image won't show up. There is just the missing image icon to be seen.

What am I doing wrong? Thanks in advance for your help!

701 Views
Message 1 of 4
Report
1 Best Answer

Best Answer

@MartinMt Your url path isn't quite complete. Try this:

<img src="/files/theme/images/photography/thumbnail.jpg" alt="lorem">

View Best Answer >

682 Views
Message 5 of 4
Report
3 REPLIES 3
Square

Hi @MartinMt I'm not able to assist with custom code, but if you post a link to your live site another user may be able to help you out. 

687 Views
Message 5 of 4
Report

Best Answer

@MartinMt Your url path isn't quite complete. Try this:

<img src="/files/theme/images/photography/thumbnail.jpg" alt="lorem">
683 Views
Message 5 of 4
Report

Oh gosh I'm sorry. For some reason I've totally forgotten that I have to use the real browser path instead. It works perfectly now. Thank you so much @PaulMathews ! 🙏🏻

675 Views
Message 5 of 4
Report
This thread has been archived and locked. Please start a new thread if you would like to continue the conversation.
grz-custom-initialLetter