
Originally Posted by
blackhalo
Thank you testuser...
I've been looking for something like Web Developer tools for Firefox...AMAZING!!
I have one IH2 problem though, it's pretty serious...
where can I find the logic that generates the <img> with the "ALT" and "TITLE" tags?
Why?
I sell t-shirts...every product has the word "t-shirt" in the name.
So if I've got 100 t-shirt designs on my home page, that immediately turns into 500 instances of the word t-shirt on one page!!
Between the href's for both the product image and the text below it,
the visible text within the link, then the auto-generated ALT and TITLE tags...
No sir, I don't like it...(Ren & Stimpy anyone?)
So how can I remove/stop the "TITLE" tag from generating with the images?
I'm semi-familiar with the guts of ZenCart, I just need to know where to find the logic that's generating this tag...which file?
Thank you!!
Personally I don't like to edit core files, but here's what you'd need to do:
Open
/includes/functions/html_output.php
Replace line 200 - 202 with the following:
Code:
/*if (zen_not_null($alt)) {
$image .= ' title=" ' . zen_output_string($alt) . ' "';
}*/
Now save this file as html_output.php.bak and also html_output.php, this will preserve your change in the instance you do an upgrade (a direct upgrade will overwrite your html_output.php file - then work your changes back into that file using the .bak file)
Also, at line 198 is your alt tag as well ... You can remove that if you'd like.
I'd personally suggest removing the word T-Shirt from all your products though as the title tag is pretty significant for SEO purposes, can be a task with a bunch of products though. But fully understand your point with the weight of "T-Shirt."
Bookmarks