GeoDirectory Support Forums Forums GeoDirectory Core Plugin General Discussion How can I prevent Genesis themes prevent

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #408663

    Himadri Goswami
    Full 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
    Full 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: 9299

    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)

The topic ‘How can I prevent Genesis themes prevent’ is closed to new replies, this may be for inactivity, please open a new topic if you have a similar question.

  • How to add a new support ticket

    To open a new support ticket, first select the relevant forum and then click the "New Post" button. Example: You need support for the core plugin? Click on GeoDirectory Core Plugin support and click on the "New Post Button".
  • Support Policy

    Please read the support policy before starting to use the forum.
  • Are you a developer?

    Make Money with GD Jobs

    Get listed in the GeoDirectory Experts Directory. There may be a new client waiting for your services.
  • Looking for a GD developer?

    We do not provide customization services, but feel free to check out the GeoDirectory Experts Directory, there you'll find several freelance GD experts ready to start working with you.