How to add alt tags in images?
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.
Hi, take a look here to the guide of Markdown.
https://github.com/adam-p/markdown-here ... eet#images
https://github.com/adam-p/markdown-here ... eet#images
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 ?
This is a feature necessary ? or the alt could be the username or nickname ?
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.
-
- 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
+1 for additional / editable "alt" attributes on images and thumbanils / cover pictures. :D
Sincerely,
Sam
- bayerberg
- Master Bludit
- Posts: 141
- Joined: Wed Jun 07, 2017 1:05 pm
- Location: London, UK
- Has thanked: 9 times
- Been thanked: 10 times
- Contact:
In my themes I'm using couple of easy tricks
for avatars
and for cover images
solves some of SEO issues
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')).'">';
Code: Select all
echo'<img alt="'.$page->title().'" src="'.$page->coverImage().'" itemprop="url" class="really-scale-me" />';