Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #169832
    joshuagreene
    Participant

    I’m currently using My Music Band Pro which appears to have set custom sizes (120×120) for SHOP THUMBNAILS and WOOCOMMERCE GALLERY THUMBNAILS.

    The product table I’m using wants the images at 59×59. For reference: https://gtmetrix.com/reports/showchoircharts.com/zSrv8RSr

    My original images are 300×300 and I want to keep them that way for the product pages. So my questions:

    1. How do I change the theme’s default thumbnail sizes?

    2. And how do I regenerate the thumbnails after doing so?

    Page in question: https://showchoircharts.com/catalog/

    Thank you,
    jg

    #169846
    Skandha
    Participant

    @joshuagreene: Hello there,
    You seem to be using WooCommerce Product Plugin for the product table on your Catalog page. So the image size is being set up from that plugin. Maybe this link will be helpful for you.

    Kind Regards,
    Skandha

    #169905
    joshuagreene
    Participant

    With Respect,

    This response is categorically WRONG. Did you write this plugin? And if so, do you KNOW how it works?

    This theme (and I’m assuming ALL your themes), overwrite WooCommerce’s ability to set specific thumbnail sizes. Simply go to the Customizing/WooCommerce/Product Images page and you’ll see that the ability to specify thumbnail size has been removed. YOUR THEME is what removes that functionality. While I’ve only been doing this for a couple weeks, that’s fairly common knowledge I think.

    So I went digging through your theme, and after an hour finally found: Theme Files/Inc/Customizer/WooCommerce.php. Within that file is the following code:

    function my_music_band_woocommerce_setup() {
    add_theme_support( ‘woocommerce’, array(
    ‘thumbnail_image_width’ => 480,
    ‘single_image_width’ => 580,
    ‘gallery_thumbnail_image_width’ => 120,
    ) );

    According to your answer above, the WooCommerce Product Plugin wrote that code. Really? I’m a newbie, so maybe I’m missing something, but it sure looks like it’s hardcoded into your theme. Again, with respect…

    All you had to do was point me to that php file in your theme, and it would’ve saved me an hour of my life. Hopefully you’ll take a little more time to address the other question I posted yesterday. Your first attempt there was equally dismissive, and I’m trusting that we’ll get on the same page here soon.

    Thank You,
    jg

    #170050
    Skandha
    Participant

    @joshuagreene: Hello Joshua,
    Sorry for the inconvenience.

    function my_music_band_woocommerce_setup() {
    add_theme_support( ‘woocommerce’, array(
    ‘thumbnail_image_width’ => 480,
    ‘single_image_width’ => 580,
    ‘gallery_thumbnail_image_width’ => 120,
    ) );

    Yes, the theme has predefined width for the WooCommerce Images and it has removed the option to specify thumbnail sizes. But I do not think that option will change the thumbnail size of the images in your catalog pages. I am not saying that the code was written by the plugin but what I meant was since you are using a Pro Plugin the option to change the thumbnail seems to be in the plugin page settings. Can you please check that?

    Can you try changing the width in the code and check if this changes the thumbnail size in your catalog page?

    Let me know if you are still having the issue.
    Kind Regards,
    Skandha

    #170079
    joshuagreene
    Participant

    Thank you for following up.

    Yes, before I posted my last reply, I changed your code (from 120 to 59), then regenerated my images with the Regenerate Thumbnails plugin, and everything is working correctly now. My frustration was because I asked where the code was, and got a reply indicating it wasn’t your code. So I spent an hour looking for it on my own, when you could’ve just pointed me there to begin with.

    All good though. Please just look into the issue I’m having in my other post in this forum. I can’t go live with my site until it’s fixed, and I’ve already lost a month of business due to the page’s inability to load correctly in Safari.

    Thank You,
    jg

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Serving Scaled Images…’ is closed to new replies.