How can I prevent Genesis themes prevent

This topic contains 2 replies, has 2 voices, and was last updated by  Alex Rollin 6 years, 4 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #408663

    Himadri Goswami
    Expired Member
    Post count: 86

    How can I prevent genesis themes creating additional thumbnails which was meant for regular posts? I want them to stop creating thumbnails for listing posts.

    Regards

    #408666

    Himadri Goswami
    Expired Member
    Post count: 86

    For example i want to know, if I can use the following snippet to prevent home-middle thumbnail size generation for my geodirectory custom post type gd_hospitals:

    
    
    add_filter( 'home-middle', my_custom_intermediate_image_sizes, 999 );
    function my_custom_intermediate_image_sizes( $image_sizes ){
       
       if ( isset( $_REQUEST['post_id'] ) && 'gd_hospitals' === get_post_type( $_REQUEST['post_id'] ) )
          return array();
    
       return $image_sizes;
    }

    Secondly I want to know, If I want prevent more thubnails images meant for regular posts, how can I use in this same snippet?

    #408670

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    Can you tell us about the bug or issue you are experiencing?

    Customization of the theme is outside of what we do in support

Viewing 3 posts - 1 through 3 (of 3 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket