Tagged: Images, responsive, wordpress
-
AuthorPosts
-
April 27, 2021 at 9:33 pm #1297076
Does the latest Enfold theme updates support the new addition to WordPress (via WordPress 4.4.) that adds native responsive image support, and applies srcset and sizes automatically to images? If yes, do i need to do anything to enable it?
April 30, 2021 at 4:21 pm #1297598Hey JoeSurf,
Thank you for the inquiry.
Yes, the theme implements the native srcset feature on some elements, but not all. Which specific image element are you interested in? ‘
To activate it, just got to the Enfold > Performance panel and look for the Responsive Images option. The option is also available for lightbox images.
Best regards,
IsmaelApril 30, 2021 at 7:53 pm #1297626Can we get a list of elements currently NOT supported so we can make design decisions accordingly?
And also maybe a time-line of the ones being worked on next for support?
May 3, 2021 at 5:12 am #1297842Hi,
@thp: We do not have a list of elements yet, but you can assume that every shortcode or template file that contains the Av_Responsive_Images class and is using its methods should render responsive images.
For example, the enfold/config-templatebuilder/avia-shortcodes/image/image.php file should contain this line, which outputs an image markup with the srcset attribute.
return Av_Responsive_Images()->make_content_images_responsive( $output );
It can be easily done using any text editors’ search feature. In Microsoft VS Code for example, just hit CTRL + SHIFT F in Windows, or CMD + SHIFT + F in Mac to search for the Av_Responsive_Images in every files in the theme.
You can also assume that every template that is using the get_the_post_thumbnail or the wp_get_attachment_image function will render responsive images or an image with the srcset attribute.
Best regards,
IsmaelMay 3, 2021 at 5:21 am #1297845Hi,
UPDATE: This is a list of shortcodes or template files that contains the Av_Responsive_Images class.
slideshow**
blog
catalogue
gallery
horizontal gallery
image
image hotspot
logo slider
masonry**
magazine
portfolio
post slider
lightbox
team
logo** some variants or styles may not have the srcset attribute
Best regards,
IsmaelMay 3, 2021 at 4:14 pm #1298044Thank you for the update.
I’ll keep an eye on the change log to see more elements get supported in the next few releases as well. (perhaps you could mention in the change log when the final elements have support added, so we know ALL elements have it?)
May 6, 2021 at 11:36 am #1298765 -
AuthorPosts
- You must be logged in to reply to this topic.