Hello Summer Sale!
Exclusive season-opening discount on TheGem theme.
Limited time offer.

Okay
  Public Ticket #1884322
Adjustment of Image Size
Closed

Comments

  • Timo started the conversation

    I need to adjust the values of:

    'thegem-blog-default-large' => array(1170, 780, true),
    'thegem-blog-default-medium' => array(780, 520, true),
    'thegem-blog-default-small' => array(520, 346, true),
    'thegem-blog-timeline' => array(440, 0, true),
    'thegem-blog-timeline-small' => array(370, 0, true),
    'thegem-blog-timeline-large' => array(720, 0, true),
    'thegem-blog-default' => array(1170, 780, true),

    Is there a possibility to persist these changes in the function.php of the child theme?

    Thanks in advance for your help!


  •  7,280
    Oliver replied

    HI,

    Yes, here:

    function thegem_image_sizes_new($sizes) {
        $sizes['thegem-blog-default-large'] =  array(500, 500, true);
        $sizes['thegem-blog-default-medium'] =  array(500, 500, true);
        return $sizes;
    }
    add_filter( 'thegem_image_sizes', 'thegem_image_sizes_new');
    

    after adding this code you need to start regenerate thumbnails plugin.

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver