Stop THOSE Duplicate Images in WordPress - Code Snippet

Sdílet
Vložit
  • čas přidán 2. 07. 2024
  • Get the code from the Snippets Bundle inside the FREE Settings Pack: learn.websquadron.co.uk/#free...
    👉 Grab our $1 Business Packs: learn.websquadron.co.uk/#packs
    👉 WordPress Hosting: be.elementor.com/visit/?bta=2...
    👉 The Pro Page Builder: be.elementor.com/visit/?bta=2...
    Need 1-2-1 Support: learn.websquadron.co.uk/#support
    Join our Facebook Group: / websquadron
    Get Code Snippets Pro: r.freemius.com/10565/3304295/
  • Jak na to + styl

Komentáře • 41

  • @YasirShabbir
    @YasirShabbir Před 5 dny +1

    Amazing Imran as always ❤

  • @visualmodo
    @visualmodo Před 3 dny +1

    Really good video!!!

  • @juniormoture4506
    @juniormoture4506 Před 7 dny +1

    I almost wiped out my entire media library trying to figure this out. Thank you for this information

  • @QuaverloveStudio
    @QuaverloveStudio Před 6 dny +1

    That's caught me out so many times in the past, not zeroing out the medium and large fields. Actually, I only started doing after watching one of your videos.
    This snippet is a massive time (and definitely space) saver. Many thanks, Imran.

    • @QuaverloveStudio
      @QuaverloveStudio Před 6 dny

      One thing: you emphasise and re-emphasised the fact that you didn't make any changes in Media Settings. Does it make a difference if one has already made changes?

    • @websquadron
      @websquadron  Před 6 dny +1

      It’s fine to do both :) :)

    • @QuaverloveStudio
      @QuaverloveStudio Před 6 dny

      @@websquadron
      Cool. Thanks for confirming.

  • @zpepe
    @zpepe Před 7 dny +1

    Thank you for this! I have a 10 year old site with lots of images. Anyway to clean that up. I've always disliked those duplicates but never was sure on how to best remove them! Please and thank you

  • @pezreloaded8436
    @pezreloaded8436 Před 7 dny

    I'm adding this code snippet ASAP! Thanks Imran for sharing 😍

  • @eekeek433
    @eekeek433 Před 7 dny

    Great content!! your rocking it! atm. don't stop, love the channel!! :)

  • @LordJHouse
    @LordJHouse Před 6 dny

    Dang, it never occurred to me it was creating duplicates because I didn't see them in the Media library. Thanks for this code and video!

  • @krowest
    @krowest Před 6 dny

    Would this be recommended for a webshop? I always assumed this is to increase the loading speed because the webshop/website would load the most suitable image for the specific device/screen resolution? As I said, I assume, so I might be completely wrong. Can you say anything regarding this point?

    • @websquadron
      @websquadron  Před 6 dny

      It’s meant to load the most suitable image but doesn’t always follow that and you may still get issues of inappropriate sizing for different devices

  • @videoboi4204
    @videoboi4204 Před 6 dny

    do you have any code snippet to do that existing imgs?

  • @DanielNeubauer
    @DanielNeubauer Před 7 dny

    Nice one. I guess iwe could still add our custom image sizes as well, because I guess it makes sense to have one image size that is your blog's content width.

    • @websquadron
      @websquadron  Před 6 dny

      Yup your original image will remain

    • @DanielNeubauer
      @DanielNeubauer Před 6 dny

      @@websquadron No, I meant, if we could still add our own custom image sizes via snippet and then have the original, the 150x150 thumb plus whatever other image size I added as custom image size via snippet?
      Thanks.

  • @kaludactn
    @kaludactn Před 6 dny

    Great informations! How about the present images that I already uploaded in the last years?

    • @websquadron
      @websquadron  Před 6 dny +2

      I'm looking at a Code solution. But need to full check and test as to the impact.

    • @lunacco
      @lunacco Před dnem

      @@websquadron OMG that would amazing to be able to get rid the those extras on older sites. Amazing tip!

    • @websquadron
      @websquadron  Před dnem

      @@lunacco yup that video came out today with another snippet to get the old dupes

  • @voltsh
    @voltsh Před 3 dny

    The link does not seem to work for the code snippets

    • @websquadron
      @websquadron  Před 3 dny

      I just clicked and it went to the pack with the snippets bundle?

  • @Radu_NG
    @Radu_NG Před 5 dny

    Why you should keep the thumbnail?
    And this works with featured images on blogs?

  • @Mongo210693
    @Mongo210693 Před 7 dny

    And how could I delete the other picture versions, If I didn’t had the Code Snippet before?

    • @websquadron
      @websquadron  Před 7 dny +1

      Unfortunately - you got to do that manually. I am still testing a safe way to do that for previously uploaded images.

    • @zpepe
      @zpepe Před 6 dny

      ​@@websquadronjust saw this (I just asked the question too)

  • @KhalsaWebsiteDesignersInPunjab

    I use meow plugin that gives a little more features.

  • @d3layd
    @d3layd Před 6 dny

    Whats the benefit of using the code snippet plugin vs just using the snippets in the child theme functions.php

    • @websquadron
      @websquadron  Před 6 dny +1

      I like to have them laid out as easier to manage :)

    • @d3layd
      @d3layd Před 5 dny

      Is that your own plugin​@@websquadron, or one that you found?

  • @ratty112
    @ratty112 Před 7 dny

    I do the same and just keep the original and a webP version. How come you keep the thumbnail?

    • @websquadron
      @websquadron  Před 7 dny +1

      Sometimes for Posts and Products it can make a difference. Sometimes...

  • @ravindug
    @ravindug Před 7 dny

    Need one to delete the originals and keep only webp

    • @websquadron
      @websquadron  Před 7 dny

      Indeed.

    • @ravindug
      @ravindug Před 7 dny

      @@websquadron any way to do that? I found only one plugin that support deleting original after converting to webp, but that plugin (Swift Train) no longer work and development halted