Streaming live at 10am (PST)

Show image from url


#1

Hi!
I’m trying to show an image from an URL. Can it be done?
I can’t add the image as an asset because I’m importing links via zapier -> CMS.

I tried this JQuery code:
( document ).ready(function() { console.log( "ready!" ); var photo_link = ("#photo_link_text").text();
$("#image").attr(“src”,photo_link);
});

I get a Cross-origin-read-blocking error.


#2

Have you tried doing it as an HTML embed?


#3

Thanks for the quick answer.
I was using “code embed”. Same as HTML embed?
I found my error; My picture link wasn’t actually not a picture, but a web page with my picture and more. Problem solved. The code above worked when the ID #photo_link_text was set to a URL with a jpg.

Thanks again.