Jump to content

How To Use <img> To Upload Photos Via The Code Block?

Recommended Posts

Posted

Site URL: https://defendingabuse.com

Hey guys. I am trying to add images to my site via html using the <img> tag.

I cannot for the life of me get it to work. Any image URL I try does not work. I have tried uploading to Imgur and using that link, still nothing. 

Can someone explain how I get the proper img url and how to get the images to show up?

Thank you!

Posted
On 1/7/2022 at 10:15 PM, tuanphan said:

See how to upload image & get image url.

When you have url, add a Code Block >> use this code

<img src="/s/mountain.png" width="50%" />

 

Thanks for the reply, you're really awesome for helping so much!

I will give this a shot tomorrow when I am back on my work computer. That is the code I was trying, minus the "width" part, and I could not get anything to work. I will report back here when I try it tomorrow.

Thanks again

Posted
On 1/7/2022 at 10:15 PM, tuanphan said:

See how to upload image & get image url.

When you have url, add a Code Block >> use this code

<img src="/s/mountain.png" width="50%" />

 

Here is what I get when I use the code. I first open the photo with Chrome so I can get the whole file path but it will not show the photo I am trying to display

868499746_ScreenShot2022-01-10at9_00_42AM.thumb.png.10496379231e51c013e068cdc4035609.png

Posted
On 1/10/2022 at 9:02 PM, WuTangForever said:

Here is what I get when I use the code. I first open the photo with Chrome so I can get the whole file path but it will not show the photo I am trying to display

868499746_ScreenShot2022-01-10at9_00_42AM.thumb.png.10496379231e51c013e068cdc4035609.png

The url in your screenshot is url in your pc folder file, not image url internet.

See how to upload image & get image url.

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.