ElkArte Community

General => Chit Chat => Topic started by: gevv on June 02, 2015, 12:21:51 pm

Title: [Tips] Simple Seo image alt-title tag
Post by: gevv on June 02, 2015, 12:21:51 pm
Hi,

Very simple systems can be developed  :)

open sources/Subs.php  

edit line 1002 and 1013

line  1002   alt="{alt}"  replace;

Code: [Select]
alt="'.$context['page_title_html_safe'].'" title="'.$context['page_title_html_safe'].'"

line 1013  alt=""  replace;

Code: [Select]
alt="'.$context['page_title_html_safe'].'" title="'.$context['page_title_html_safe'].'"

Topic Title are added automatically   "alt" and "title" tag
Title: Re: [Tips] Simple Seo image alt-title tag
Post by: Joshua Dickerson on June 02, 2015, 12:40:28 pm
You shouldn't do this. It doesn't add any contextual information about the image and might cause your site to get negative ratings by search engines. Just add alt/title tags to your images.