Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Serving responsive images in Shortpixel Image Optimizer

$
0
0

Replies: 0

Hi all,
I am looking for the preferred way / best practice, to serve responsive images with Shortpixel Image optimizer using Elementor Pro theme builder. At this moment, the best practice is unclear to me.
I am working with the following image types:

  • JPG images
  • WEBP images

Serving method:

  • Shortpixel serving SRCSET (using the <PICTURE> tag) via wordpress hooks

Options for template image sizes:

  • Custom image size in WordPress (functions.php) + Custom image size in WordPress (functions.php) 2 times the size
  • Custom image size in WordPress (functions.php) + WP Retina 2x
  • Custom image size in WordPress (functions.php) + default image sizes (medium / medium/large / large)

Question #1 How do I define the normal and responsive image sizes in my template (Elementor Pro)?
Question #2 How do I define the normal and responsive image sizes for individual sized images? (Since for a single image, I don’t want to create a custom image size in WordPress, resulting in all my images being converted to that size as well in Shortpixel.)

  • This topic was modified 21 minutes ago by jwamsterdam.
  • This topic was modified 21 minutes ago by jwamsterdam.

Viewing all articles
Browse latest Browse all 59525

Trending Articles