- This topic has 12 replies, 2 voices, and was last updated 7 years, 4 months ago by
David.
-
AuthorPosts
-
November 13, 2018 at 7:19 am #726306
Shawn
I want to add this html code to my site for retina images:
<img src="normal-image.jpg" srcset="normal-image.jpg 1x, normal-image@2x.jpg 2x" alt="" />Where does it go? This is probably a dumb question but I don’t know what I don’t know.
Thanks.
November 13, 2018 at 7:24 am #726310Shawn
The html code isn’t displaying in my submission above for some reason.
November 13, 2018 at 7:51 am #726336David
StaffCustomer SupportHi there,
if you can edit your original topic, highlight your HTML and click the code button in the editor.
November 13, 2018 at 8:01 am #726350Shawn
Great, thanks David.
November 13, 2018 at 8:12 am #726360David
StaffCustomer SupportIf you’re looking to use Retina images throughout the content of the site i would recommend using this plugin:
https://wordpress.org/plugins/wp-retina-2x/
It simplifies the whole process and will save you editing the html for each of your images
November 13, 2018 at 8:19 am #726368Shawn
I’ve heard this plugin isn’t compatible with Elementor, which is what I’m using.
November 13, 2018 at 8:22 am #726374David
StaffCustomer SupportHmmm… i haven’t tested it with Elementor, i am not sure why it wouldn’t work ( apart from background images ) as it just adds a srcset attribute for the image. Have you spoken with Elementor about this?
November 13, 2018 at 8:35 am #726386Shawn
Yes, Elementor confirmed the compatibility issue and recommended I contact the developer. I did but didn’t receive a response.
November 13, 2018 at 8:50 am #726396David
StaffCustomer SupportAnd they offered no other advice on how to use Retina images with their product?
Problem we have is Elementor prints the HTML so if they are leaving behind the necessary attributes we cant really assist with fixing that.November 13, 2018 at 9:56 am #726478Shawn
No other advice was offered.
November 13, 2018 at 11:11 am #726534David
StaffCustomer SupportI am afraid there is not much we can do, it would require some serious custom development to add the necessary sources to Elementors markup. Maybe this is why they haven’t done it or they don’t feel there is a need for it. I checked their Github and it was only raised once as an issue. So not much demand has been generated.
November 13, 2018 at 11:13 am #726538Shawn
Thanks for your help David.
November 13, 2018 at 11:27 am #726546David
StaffCustomer SupportYou’re welcome, sorry we couldn’t provide a solution.
-
AuthorPosts
- You must be logged in to reply to this topic.