Support » Plugin: Perfect WooCommerce Brands » Change image size in carousel

  • In the carousel, only thumbnail images come up. I need larger images and scaled the images in CSS, but now, of course, they are not sharp.
    How can I set the image size to be loaded here?

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Meanwhile I replaced some code to get better images in wp-content/plugins/perfect-woocommerce-brands/templates/shortcodes/product-carousel.php. But I’d certainly prefer an “official” solution.

    $product_meta = get_post_meta($product['id']);
    $pm = $product_meta['_thumbnail_id'][0];
    if ($pm) {
      $image = wp_get_attachment_image( $pm, 'shop_catalog' );
    } else {
      $image = '<img src="wp-content/plugins/woocommerce/assets/images/placeholder.png" alt="Placeholder" >';
    }
    echo $image;
    • This reply was modified 2 months, 2 weeks ago by lausianne.
    • This reply was modified 2 months, 2 weeks ago by lausianne.
    Plugin Contributor titodevera

    (@titodevera)

    Hi lausianne,

    Copy the product-carousel.php template to your theme and feel free to edit the image size as your needs. This ensure that you donĀ“t lose the changes after the next update.

    More details here: Overriding templates via a theme

    Regards

    Thank you. That’s a good temporary workaround. Still, I’m never too happy to override things. These can break anytime on updates. I hoped you could add an option to select sizes in the backend. (plus placeholder, ideally …)

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.