Title: Add class to Elementor Image
Author: Eduardo Villão
Published: <strong>2021-06-16</strong>
Last modified: 2026-01-12

---

Szukaj wtyczek

![](https://ps.w.org/add-class-to-elementor-image/assets/banner-772x250.png?rev=
2579528)

![](https://ps.w.org/add-class-to-elementor-image/assets/icon-128x128.png?rev=2579528)

# Add class to Elementor Image

 Autor: [Eduardo Villão](https://profiles.wordpress.org/evcode/)

[Pobierz](https://downloads.wordpress.org/plugin/add-class-to-elementor-image.1.3.2.zip)

 * [Szczegóły](https://pl.wordpress.org/plugins/add-class-to-elementor-image/#description)
 * [Recenzje](https://pl.wordpress.org/plugins/add-class-to-elementor-image/#reviews)
 *  [Instalacja](https://pl.wordpress.org/plugins/add-class-to-elementor-image/#installation)
 * [Rozwój](https://pl.wordpress.org/plugins/add-class-to-elementor-image/#developers)

 [Wsparcie](https://wordpress.org/support/plugin/add-class-to-elementor-image/)

## Opis

You need add your custom CSS class to Elementor image widget? Me too!

So i created this simple plugin to help. Just install and use the new input in Image
widget to add your custom class.

### More plugins?

Check my other plugins: [WordPress Plugins](https://eduardovillao.me/wordpress-plugins/)

### WordPress Tips?

Check my blog: [WordPress Tips](https://eduardovillao.me/blog/)

### Plugins Suggestions?

Please, send to me: [plugins@eduardovillao.me](https://pl.wordpress.org/plugins/add-class-to-elementor-image/plugins@eduardovillao.me?output_format=md)

## Zrzuty ekranu

[⌊image custom class⌉⌊image custom class⌉[

image custom class

## Instalacja

 1. Install plugin in your WordPress.
 2. Open Elementor editor and use the new input in Image Widget to set custom Class.

## Recenzje

![](https://secure.gravatar.com/avatar/ff514bce71920b50eec118552a4f9e7385318eaa97c17c8d3ed3b7e376505e1a?
s=60&d=retro&r=g)

### 󠀁[Time Saver](https://wordpress.org/support/topic/time-saver-376/)󠁿

 [Hasan H.](https://profiles.wordpress.org/nimdaqiu/) 2026-02-16

Thanks Eduardo! The plugin worked perfectly. I appreciate your contributions for
us. Keep it up!

![](https://secure.gravatar.com/avatar/1e2cfb6f4f43a6251f436615a36bb3e06e47dbae811250d0f2d6e8eb3bdeb124?
s=60&d=retro&r=g)

### 󠀁[Works perfectly!](https://wordpress.org/support/topic/works-perfectly-2864/)󠁿

 [Santiago Lope del Palacio](https://profiles.wordpress.org/sldp/) 2025-06-10

Needed to exclude some images from lazy loading in WP Rocket, but Elementor adds
classes to the parent <div>, not the image tag. This plugin solved it instantly.
Thanks, Eduardo!

![](https://secure.gravatar.com/avatar/dc4537c616e5a70db3933301c9cada1b538625282da279c54b4a07bb53d55e1c?
s=60&d=retro&r=g)

### 󠀁[Muito útil](https://wordpress.org/support/topic/muito-util-70/)󠁿

 [Caio Ferreira](https://profiles.wordpress.org/caiohferreiradev/) 2024-07-14

Excelente plugin para adicionar classes de no-lazyload em imagens. Até então a única
solução para esse problema no Elementor.

![](https://secure.gravatar.com/avatar/cef57b2f177c2fa1ff4b499f298618b0857896734c67cef7297f7c38eb940176?
s=60&d=retro&r=g)

### 󠀁[Brilliant. Just what I was looking for.](https://wordpress.org/support/topic/brilliant-just-what-i-was-looking-for-4/)󠁿

 [BlackSheep42](https://profiles.wordpress.org/blacksheep42/) 2024-03-26

I use SiteGround for my hosting. It's built in caching plugin has a lazy load setting.
Unfortunately this broke a particular grid layout in my design. There is an option
to stop lazy loading on and individual basis by adding the class "skip-lazy" to 
the desired image. This plugin allowed me to do just that.

![](https://secure.gravatar.com/avatar/a80a189d2ae3d39c43d20f6fd496f47896f4f170e7f5a939e80367c818472ee2?
s=60&d=retro&r=g)

### 󠀁[Works Great. Useful.](https://wordpress.org/support/topic/works-great-useful/)󠁿

 [Mark](https://profiles.wordpress.org/markob17/) 2023-02-28

Was trying to figure out way to add a class only to my featured images in my Elementor
layout for blog posts, so I can disable lazyload on them, and this plugin works 
great. Highly recommend it. That said, I ended up deciding not to use it since I
found a Functions.php code snippet that worked for my needs. I prefer to not use
additional plugins if I can help it. But if you need more granular control over 
classes on images and you use Elementor, this plugin is what you need. But if you
just need to do what I did, here's the snippet that worked for me: function db_add_class_to_single_featured_image(
$attr) { remove_filter('wp_get_attachment_image_attributes','db_add_class_to_single_featured_image');
if ( is_single() ) { $attr['class'] .= ' no-lazy'; } return $attr; } add_filter('
wp_get_attachment_image_attributes','db_add_class_to_single_featured_image');

![](https://secure.gravatar.com/avatar/39cac1218d1ff05adb5a2093ae5b2f2b9b4b04fe4d524bea706c021451dc11d9?
s=60&d=retro&r=g)

### 󠀁[Doesn’t work with background images](https://wordpress.org/support/topic/doesnt-work-with-background-images/)󠁿

 [katandmouse](https://profiles.wordpress.org/katandmouse/) 2022-12-20

I was hoping to exclude background images from lazy loading, but I need to be able
to add a class to do it. This unfortunately does not do that. For my needs it's 
0 stars, but I give it 5 stars for other uses, so it's a 3 average for me.

 [ Przeczytaj 10 recenzji ](https://wordpress.org/support/plugin/add-class-to-elementor-image/reviews/)

## Kontrybutorzy i deweloperzy

„Add class to Elementor Image” jest oprogramowaniem open source. Poniższe osoby 
miały wkład w rozwój wtyczki.

Zaangażowani

 *   [ Eduardo Villão ](https://profiles.wordpress.org/evcode/)

Wtyczka „Add class to Elementor Image” została przetłumaczona na 2 języki. Podziękuj
[tłumaczom](https://translate.wordpress.org/projects/wp-plugins/add-class-to-elementor-image/contributors)
za ich wkład.

[Przetłumacz wtyczkę “Add class to Elementor Image” na swój język.](https://translate.wordpress.org/projects/wp-plugins/add-class-to-elementor-image)

### Interesuje cię rozwój wtyczki?

[Przeglądaj kod](https://plugins.trac.wordpress.org/browser/add-class-to-elementor-image/),
sprawdź [repozytorium SVN](https://plugins.svn.wordpress.org/add-class-to-elementor-image/)
lub czytaj [dziennik rozwoju](https://plugins.trac.wordpress.org/log/add-class-to-elementor-image/)
przez [RSS](https://plugins.trac.wordpress.org/log/add-class-to-elementor-image/?limit=100&mode=stop_on_copy&format=rss).

## Rejestr zmian

#### 1.3.2

 * Changed: compatibility with WordPress 6.7.
 * Changed: code improvements.

#### 1.3.1

 * Changed: compatibility with WordPress 6.5.
 * Changed: code improvements.

#### 1.3

 * Fix: do not working on the latest versions of Elementor.
 * Changed: Compatibility with WordPress 6.3.

#### 1.2.4

 * Changed: Compatibility with WordPress 6.2.

#### 1.2.3

 * Changed: Compatibility with WordPress 6.1.

#### 1.2.2

 * Changed: Compatibility with WordPress 6.0.

#### 1.2.1

 * Fix php notice „Undefined index: cei_image_custom_class” in some cases.
 * Support to plugins translation.
 * Improve plugins header requirements.
 * Compatibility with WP 5.8.3.

#### 1.2

 * Add support to „Featured Image” Widget (Elementor PRO).
 * Compatibility with WP 5.8.

#### 1.1

 * Add support to „Image Box” Widget.

#### 1.0

 * Initial release.

## Meta

 *  Wersja **1.3.2**
 *  Ostatnia aktualizacja **10 miesięcy temu**
 *  Włączone instalacje **1,000+**
 *  Wersja WordPressa ** 5.5 lub nowszej **
 *  Testowano do **6.9.11**
 *  Wersja PHP ** 7.0 lub nowszej **
 *  Języki
 * [English (US)](https://wordpress.org/plugins/add-class-to-elementor-image/), 
   [Italian](https://it.wordpress.org/plugins/add-class-to-elementor-image/), i 
   [Portuguese (Brazil)](https://br.wordpress.org/plugins/add-class-to-elementor-image/).
 *  [Przetłumacz na swój język](https://translate.wordpress.org/projects/wp-plugins/add-class-to-elementor-image)
 * Tagi
 * [custom class](https://pl.wordpress.org/plugins/tags/custom-class/)[elementor](https://pl.wordpress.org/plugins/tags/elementor/)
   [elementor pro](https://pl.wordpress.org/plugins/tags/elementor-pro/)[lazy load](https://pl.wordpress.org/plugins/tags/lazy-load/)
 *  [Widok zaawansowany](https://pl.wordpress.org/plugins/add-class-to-elementor-image/advanced/)

## Oceny

 4.8 na 5 gwiazdek.

 *  [  9 recenzji 5-gwiazdkowych     ](https://wordpress.org/support/plugin/add-class-to-elementor-image/reviews/?filter=5)
 *  [  0 recenzji 4-gwiazdkowych     ](https://wordpress.org/support/plugin/add-class-to-elementor-image/reviews/?filter=4)
 *  [  1 recenzja 3-gwiazdkowa     ](https://wordpress.org/support/plugin/add-class-to-elementor-image/reviews/?filter=3)
 *  [  0 recenzji 2-gwiazdkowych     ](https://wordpress.org/support/plugin/add-class-to-elementor-image/reviews/?filter=2)
 *  [  0 recenzji 1-gwiazdkowych     ](https://wordpress.org/support/plugin/add-class-to-elementor-image/reviews/?filter=1)

[Twoja opinia](https://wordpress.org/support/plugin/add-class-to-elementor-image/reviews/#new-post)

[Zobacz wszystkierecenzje.](https://wordpress.org/support/plugin/add-class-to-elementor-image/reviews/)

## Zaangażowani

 *   [ Eduardo Villão ](https://profiles.wordpress.org/evcode/)

## Wsparcie

Masz coś do dodania? Potrzebujesz pomocy?

 [Zobacz forum wsparcia](https://wordpress.org/support/plugin/add-class-to-elementor-image/)

## Złóż datek

Czy chcesz wesprzeć rozwój wtyczki?

 [ Wspomóż wtyczkę ](https://eduardovillao.me/)