14+ years building on WordPress / Replies in under 5 hours
WordPress 1 min read · Updated July 2026

Adding the Title Tag to Image in Elementor

AK
Ajay Khandal
WordPress Developer
TL;DR

Elementor's image widget doesn't add a title attribute to images by default, which hurts image SEO. The fix requires editing a core Elementor plugin file to output the title attribute, but because it touches core plugin code, the change gets wiped out on the next Elementor update unless it's reapplied or moved into a child plugin or filter hook. This is a developer-level fix, not a settings toggle.

Adding the title tag in the Elementor image box widget is not available in the default Elementor plugin. For SEO of any website, we need to add a title to the image. Here is a solution you can follow to enable the title attribute on images for your web pages.

Step 1: Log in to your cPanel or FTP

Step 2: Open the Elementor image size file

Navigate to the following path and open the file:

/wp-content/plugins/elementor/includes/controls/groups/image-size.php

Step 3: Add the title attribute at line 98

Add this line:

'title' => trim( Control_Media::get_image_title( $image ) ),

So the final block looks like this:

$image_attr = [
    'class' => trim( $image_class ),
    'title' => trim( Control_Media::get_image_title( $image ) ), //*** add this line
];

Looking to round out your WordPress knowledge? Learn more about how to use wp_get_attachment_image() in your templates. Learn more about our Elementor vs Gutenberg comparison.

AK

Written by Ajay Khandal

WordPress Developer — building, fixing and speeding up WordPress sites.

Work with me →