Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1192510
    neodjandre
    Participant

    I am using this code to remove additional image sizes created by theme which seems to work but I can still see 1 more size being generated when i upload an image.

    add_action('init', 'remove_plugin_image_sizes');
    
    function remove_plugin_image_sizes() {
      remove_image_size('post-thumbnail');
      remove_image_size('entry');
      remove_image_size('entry-cropped');
      remove_image_size('entry-fullwidth');
      remove_image_size('entry-cropped-fullwidth');
    }

    Is there something I am missing here?

    #1192543
    Thai
    Moderator

    Hi There,

    It could be from the 3rd party plugins.

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks.

    #1192551
    neodjandre
    Participant
    This reply has been marked as private.
    #1192761
    Darshana
    Moderator

    Hi there,

    Can you please try the following (https://community.theme.co/forums/topic/duplicate-image-sizes/#post-306165).

    Hope that helps.

    #1192794
    neodjandre
    Participant

    Yes, I tried that but for some reason there is still 1 image size that seems to be generated by the theme..

    #1192958
    Jade
    Moderator

    Hi there,

    I tried to login using the info you provided but it seems to be incorrect.

    Kindly double check.

    #1193698
    neodjandre
    Participant

    Hi,

    Please try again as it’s correct login.

    #1193763
    Paul R
    Moderator

    Hi,

    These are all the image sizes that are registered.

    Kindly delete those that you need.

    
    add_action('init', 'remove_plugin_image_sizes');
    
    function remove_plugin_image_sizes() {
      remove_image_size('thumbnail');
      remove_image_size('medium');
      remove_image_size('medium_large');
      remove_image_size('large');
      remove_image_size('post-img');
      remove_image_size('post-thumbnail');
      remove_image_size('entry');
      remove_image_size('entry-cropped');
      remove_image_size('entry-fullwidth');
      remove_image_size('entry-cropped-fullwidth');
    }
    

    Thanks

    #1194565
    neodjandre
    Participant

    ah, this doesn’t work! I give up.. I guess I have to live with this additional image, I don’t know where it’s coming from but the dimensions are calculated automatically which makes me guess is X-theme but nevermind..

    #1194765
    Darshana
    Moderator

    Hi there,

    You will also have to inspect your 3rd party plugins.

    Thanks!

    #1196318
    neodjandre
    Participant

    Finally!! For your information this is the problem:

    Responsive Images in WordPress 4.4

    you might be interested in reading this for your own purposes…

    #1196759
    Rue Nel
    Moderator

    Hello There,

    Thanks for sharing this information.

    Cheers.

  • <script> jQuery(function($){ $("#no-reply-1192510 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>