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: 43

    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: 43

    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
    Moderator
    Post count: 1532

    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)

You must be logged in to reply to this topic.

  • 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.
  • Featured ThirdPartyAddOn

  • Feature Requests

    Is there a theme for which you'd like to see a compatibility package or a new feature that you think would be of great benefit for the GeoDirectory community?

    Submit a feature request : here

    Each month you get 5 votes to distribute. You can choose to use all your votes for one idea you really like, or spread them across between several ideas :)

    We will do our best to create whatever you suggest if it becomes popular, we however reserve the right to reject ideas that we believe could not be realized without revolutionizing the plugin.

  • Are you a developer?

    Make Money with GD Jobs

    Check out the GeoDirectory Jobs Forum, there may be a new client waiting for your services. Only Premium members can access the GD Jobs forum.

    Or selling GD Themes and Addons

    Did you know that you can easily build GeoDirectory Addons and Themes and that there is a rapidly growing market for it? Submit your Add-ons and Themes here
  • Looking for a GD developer?

    We do not provide customization services, but feel free to check out the GeoDirectory Jobs Forum, there may be already a freelance GD expert ready to start working with you. Only Premium members can access the GD Jobs forum. GeoDirectory doesn't endorse any of the developers present in our forums. However we can guarantee that they are all Premium Members just like you. Please ask for references before hiring anyone and use common sense. We don't take responsability for poor quality jobs and/or missed deadlines