• Hi,

    I disabled the image cropping in the colormag-setup.php and regenerated the thumbnails, but my featured images are still cropped.

    Can I get help in this?

    Br,

    Zoltán

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @neurophunk,

    Could you please send us a screenshot showing how you disable the image size? We will look into your customization and get back to you accordingly.

    Regards!

    Thread Starter neurophunk

    (@neurophunk)

    Sure

        // Cropping the images to different sizes to be used in the theme.
    
        add_image_size( 'colormag-highlighted-post', 392, 272, false );
    
        add_image_size( 'colormag-featured-post-medium', 390, 205, false );
    
        add_image_size( 'colormag-featured-post-small', 130, 90, false );
    
        add_image_size( 'colormag-featured-image', 800, 445, false );

    Br,

    Zoltán

    Hi @neurophunk,

    1) Adding false instead of true to the image size function does not help you disable the image sizes. The function defines a custom image size with width and height values. We recommend you change the image dimension values according to your needs and regenerate the thumbnails.

    2) You may want to disable this behavior entirely. In this case, you can use the code:

    add_filter( 'colormag-featured-image', '__return_false' );

    Regards!

    Thread Starter neurophunk

    (@neurophunk)

    Hi,

    Where should I add this line?
    I tried after the image size block, but didn’t work. I deleted the cache and regenerated the thumbnails as well.

        add_image_size( 'colormag-highlighted-post', 392, 272, true );
    
        add_image_size( 'colormag-featured-post-medium', 390, 205, true );
    
        add_image_size( 'colormag-featured-post-small', 130, 90, true );
    
        add_image_size( 'colormag-featured-image', 800, 445, true );
    
        add_filter( 'colormag-featured-image', '__return_false' );

    your support is highly appreciated!

    Br,

    Zoltán

    I am also looking to disable the auto-cropping! But I am not good with CSS…

    Please tell me where exactly to add the provided code of:

    add_filter( ‘colormag-featured-image’, ‘__return_false’ );

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