Image Title Missing
-
This is a great plugin, however it is not displaying the image title of team members in the Team Widget
-
Are you saying the team member name is missing? Or is it the image title attribute for team member image? Pls clarify.
Sorry I meant that the image title attribute for team member image is missing
The plugin certainly populates the image title as well as ALT attribute for the image. This is derived from the title you provided for the image used for the team member in the media page. Pls verify that the title for the image is specified in the attachment or media page.
Hi,
Yes both title and ALT are specified in the media page.
ThanksNick
Then the title and alt should show up in the team members page. Our dev servers are reflecting this and the code too is written that way as verified by me. Can you pls share a link to the page pls if you still have trouble? Thanks
Thanks for looking.
This is the page…
https://bigminnowlearning.com/
…the title is definitely set on all the team members’ images in the media library
Thanks for helping us uncover this bug. Have made the required change for next update which is expected within next one week. Meanwhile, if you want to go ahead and have this change now – pls change line number 382 of includes/helper-functions.php to –
$image_attr = array( 'class' => trim($image_class), 'alt' => get_the_title($attachment_id), 'title' => lae_get_image_alt($attachment_id) );Brllliant. Thanks so much for your quick response guys..
Not sure line 382 looks right to me to change though. My line 382 reads…
if ( !$image_src && isset( $image_setting['url'] ) ) {It looks like line 371-3 on mine…
`$image_attr = array(
‘class’ => trim( $image_class ),
);`Excellent plugin and excellent service!
Cheers
Nick
-
This reply was modified 7 years, 10 months ago by
filmboy999.
-
This reply was modified 7 years, 10 months ago by
filmboy999.
You are welcome. 382 seems to be right as per this – https://plugins.trac.ww.wp.xz.cn/browser/addons-for-elementor/trunk/includes/helper-functions.php. May be it is slightly different as seen in the editor you use.
-
This reply was modified 7 years, 10 months ago by
The topic ‘Image Title Missing’ is closed to new replies.