Page 1 of 2

How to add alt tags in images?

Posted: Mon Oct 22, 2018 10:57 pm
by nootkan
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.

Re: How to add alt tags in images?

Posted: Mon Oct 22, 2018 11:03 pm
by diego
Hi, take a look here to the guide of Markdown.

https://github.com/adam-p/markdown-here ... eet#images

Re: How to add alt tags in images?

Posted: Mon Oct 22, 2018 11:36 pm
by nootkan
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.

Re: How to add alt tags in images?

Posted: Tue Oct 23, 2018 9:32 am
by diego
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 ?

Re: How to add alt tags in images?

Posted: Mon Nov 19, 2018 9:56 am
by nootkan
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.

Re: How to add alt tags in images?

Posted: Sat Mar 23, 2019 4:36 pm
by Renaud
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.

Re: How to add alt tags in images?

Posted: Sat Mar 23, 2019 4:40 pm
by Renaud
And we should be able to change the "alt" text for the cover image too.

It's very very very important for the SEO.

Re: How to add alt tags in images?

Posted: Sat Mar 23, 2019 8:45 pm
by SamBrishes
Hellow,

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

Sincerely,
Sam

Re: How to add alt tags in images?

Posted: Sun Mar 24, 2019 2:35 pm
by bayerberg
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

Re: How to add alt tags in images?

Posted: Sun Mar 24, 2019 7:50 pm
by Renaud
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.