How to add alt tags in images?

nootkan
Sr. Bludit
Posts: 43
Joined: Tue Feb 14, 2017 4:59 pm

Running version 1.5.2 and using the ![](http://www.example.com/image.jpg) markdown for images but everything I try to use for adding alt tags isn't working. Yet when I look at page source the empty alt tag is there. So how do I add an alt tag to an image in my posts.
User avatar
diego
Site Admin
Posts: 773
Joined: Sat May 16, 2015 2:53 pm
Been thanked: 1 time
Contact:

Hi, take a look here to the guide of Markdown.

https://github.com/adam-p/markdown-here ... eet#images
nootkan
Sr. Bludit
Posts: 43
Joined: Tue Feb 14, 2017 4:59 pm

Awesome thanks Diego. Is it possible to add an alt tag to the profile image also? I see no where to do this in admin.
User avatar
diego
Site Admin
Posts: 773
Joined: Sat May 16, 2015 2:53 pm
Been thanked: 1 time
Contact:

Is not possible from the admin panel, but you can do it in the theme.
This is a feature necessary ? or the alt could be the username or nickname ?
nootkan
Sr. Bludit
Posts: 43
Joined: Tue Feb 14, 2017 4:59 pm

Hi Diego, thanks again. To answer your question about the alt tag and if it is necessary, based on everything I've learned about seo it is necessary to have an alt tag for every image on the page to avoid penalties from google when trying to rank organically.
User avatar
Renaud
Sr. Bludit
Posts: 48
Joined: Tue Feb 19, 2019 9:08 pm

Hello,
diego wrote: Tue Oct 23, 2018 9:32 am This is a feature necessary ?
Yes, this feature is more than necessary. Each image must have it's own "alt" text.
I need it too, it's not very cool to add it on the code of the pages.

It would be great if you code it. :)

Best regards,
Renaud.
User avatar
Renaud
Sr. Bludit
Posts: 48
Joined: Tue Feb 19, 2019 9:08 pm

And we should be able to change the "alt" text for the cover image too.

It's very very very important for the SEO.
SamBrishes
Master Bludit
Posts: 106
Joined: Tue Dec 25, 2018 8:07 pm
Been thanked: 3 times

Hellow,

+1 for additional / editable "alt" attributes on images and thumbanils / cover pictures. :D

Sincerely,
Sam
User avatar
bayerberg
Master Bludit
Posts: 141
Joined: Wed Jun 07, 2017 1:05 pm
Location: London, UK
Has thanked: 7 times
Been thanked: 10 times
Contact:

In my themes I'm using couple of easy tricks
for avatars

Code: Select all

echo'<img class="avatar" src="'.($page->user('profilePicture')?$page->user('profilePicture'):Theme::src('img/nouserimage.png')).'" height="40" width="40" alt="'.($page->user('nickname')).'">';
and for cover images

Code: Select all

echo'<img alt="'.$page->title().'" src="'.$page->coverImage().'" itemprop="url" class="really-scale-me" />';
solves some of SEO issues
bludit plugins and themes - makeitblu | I do things, check them out on behance and dribbble.
User avatar
Renaud
Sr. Bludit
Posts: 48
Joined: Tue Feb 19, 2019 9:08 pm

bayerberg wrote: Sun Mar 24, 2019 2:35 pm In my themes I'm using couple of easy tricks
Thank you.
But that's not enough.
A lot of people are using Google Images for their research. The alt tag is the only way to be sure that Google know what's on a picture. For me it's essential.
Post Reply