Add class to Elementor Image

Descrizione

Hai bisogno di aggiungere una classe CSS personalizzata all’immagine del widget immagine di Elementor? Anche io!

Quindi ho creato questo semplice plugin per aiutarti. Devi solamente installarlo ed utilizzare il nuovo campo nel widget immagine per aggiungere la tua classe personalizzata all’immagine stessa.

Altri plugin?

Dai un’occhiata ai miei altri plugin: plugin di WordPress

Consigli su WordPress?

Dai un’occhiata al mio blog: WordPress Tips

Consigli per il plugin?

Inviameli qui: plugins@eduardovillao.me

Screenshot

  • classe personalizzata dell’immagine

Installazione

  1. Installa il plugin sul tuo WordPress.

  2. Apri l’editor di Elementor e utilizza il nuovo campo nel widget immagine per impostare la classe personalizzata.

Recensioni

14 Luglio 2024
Excelente plugin para adicionar classes de no-lazyload em imagens. Até então a única solução para esse problema no Elementor.
26 Marzo 2024
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.
28 Febbraio 2023
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’);
20 Dicembre 2022
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.
Leggi tutte le recensioni di 9

Contributi e sviluppo

“Add class to Elementor Image” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.

Collaboratori

“Add class to Elementor Image” è stato tradotto in 2 lingue. Grazie ai traduttori per i loro contributi.

Traduci “Add class to Elementor Image” nella tua lingua.

Ti interessa lo sviluppo?

Esplora il codice segui il repository SVN, segui il log delle modifiche tramite RSS.

Changelog

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.