No, I'm never sure when I'm making changes in ZC...
Your last suggestion did the trick, Nigel. The alt description no longer pops up. There are actually two other lines that have your last change in the original html_output.php file that was distributed with 139d (besides your original fix at line 197). My line numbers were different as I have another mod that uses this file thus changes the line numbers.
To put this all in a clear perspective, here's what I did with your suggestions (assuming my line numbers remained the same as the original file) to keep the alt description from popping up over images. In the includes/functions/html_output.php file:
I replaced the code at line 124 from this:
Code:
if (zen_not_null($alt)) {
$image .= ' title=" ' . zen_output_string($alt) . ' "';
}
to this:
Code:
if (zen_not_null($alt)) {
$image .= ' title=""';
}
I did exactly the same with the above at line 200 as the code is the same (needs to be changed in two places).
At line 197 I replaced this:
Code:
// alt is added to the img tag even if it is null to prevent browsers from outputting
// the image filename as default
$image = '<img src="' . zen_output_string($src) . '" alt="' . zen_output_string($alt) . '"';
if (zen_not_null($alt)) {
$image .= ' title=" ' . zen_output_string($alt) . ' "';
}
With this:
Code:
// alt is added to the img tag even if it is null to prevent browsers from outputting
// the image filename as default
$image = '<img src="' . zen_output_string($src) . '" alt="' . zen_output_string($alt) . '"';
if (zen_not_null($alt)) {
$image .= ' title=""';
}
Works like a charm, Nigel, and I thank you for your help!
Rod
Bookmarks