Do you want to add animated GIFs to your WordPress blog posts?
GIFs can help capture your visitor’s attention and increase engagement with your blog posts. However, when you add an animated GIF in WordPress, it could lose the animation and appear as a plain static image.
In this article, we will show you how to properly add animated GIFs in WordPress.
Why Are Your WordPress GIFs Not Working Properly?
Sometimes, animated GIFs become static images in WordPress because it automatically generates multiple sizes of the image, but only from the first frame of the animation.
Why does that happen?
Whenever you add any type of image to your WordPress website using the media uploader, WordPress automatically creates several copies of that image in different sizes.
There are 4 default WordPress image sizes, including thumbnail, medium, large, and full size.
However, when creating new image sizes for animated GIFs, WordPress ends up saving only the first frame of the GIF.
As a result, when you add any of those generated image sizes to your post or page, they will be static images and result in WordPress GIF not working.
Having said that, let’s take a look at how to properly add animated GIFs in WordPress without losing animation.
Properly Adding Animated GIFs in WordPress
First, you need to edit or create a new post or page to add the animated GIF.
Once you are in the WordPress content editor, go ahead and click the ‘+’ button and add an Image block.
Next, you’ll find multiple ways to upload your animated GIF in the Image block.
To start, simply click the ‘Upload’ button and select your animated GIF from your computer. Or you can click the ‘Media Library’ button and choose a GIF that’s already been uploaded to your media library.
There’s also an option to enter the link to your GIF by clicking the ‘Insert from URL’ button, but we don’t recommend using this because it does not upload the image to your website.
Once you upload your GIF, WordPress will insert it into your content.
After adding the GIF, you’ll need to select the ‘Full Size’ option under ‘Image size’ from the menu on your right.
The full-size image is the original animated GIF you uploaded to WordPress. Picking this will prevent your WordPress GIFs from showing up as static images and not playing the animation.
You will be able to see the animation right away in the content editor.
Go ahead and publish or update your blog post to see the animated GIFs in action.
Bonus Tips for Using Animated GIFs in WordPress
Animated GIF images are usually larger in file size than other image files. That’s because they contain several compressed images used as frames to create the animation.
Using large GIFs or adding too many GIF images on a WordPress page can slow down your website. See our ultimate guide on how to improve WordPress speed and performance for more details.
If you use Giphy to find animated GIFs, then you may find the GIF Master plugin very useful. It allows you to search the Giphy database from your WordPress admin area and add GIFs without leaving your site.
Similarly, you can also use EmbedPress to automatically add animated GIFs from Gfycat. Simply enter the URL of your GIF from Gfycat, and the plugin will embed it into your content.
We hope this article helped you learn how to add animated GIFs in WordPress. You may also want to see our list of great WordPress plugins for managing images and our complete guide on how to start an online store.