Answer the question
In order to leave comments, you need to log in
How to implement Picturefill responsive retina images in wordpress?
At the moment I am transferring the customer's layout to wordpress. Faced the problem of transferring the adaptability of images to different screens, including retina, implemented on Picturefill. The structure in layout is as follows:
<picture>
<source media="(min-width: 1024px)" srcset="img/[email protected] 1x, img/[email protected] 2x">
<source media="(min-width: 768px)" srcset="img/[email protected] 1x, img/[email protected] 2x">
<img src="img/[email protected]" srcset="img/[email protected] 2x" alt="Main_img_Car">
</picture>
<figure class="about__picture">
<img class="alignnone size-full wp-image-170" src="http://cm09224.tmweb.ru/wp-content/uploads/[email protected]" alt="" width="1304" height="548" srcset="http://minirent.club/wp-content/uploads/[email protected] 1304w, http://minirent.club/wp-content/uploads/[email protected] 300w, http://minirent.club/wp-content/uploads/[email protected] 768w, http://minirent.club/wp-content/uploads/[email protected] 1024w" sizes="(max-width: 1304px) 100vw, 1304px" />
<figcaption class="about__features features hide-text">
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question