Jump to content

[SOLVED] Front Page Image - Alt Text


Recommended Posts

The "Home text editor v1.6" module uses whatever you entered in the "Title" field on the configuration page as the alt text for the image by default. You can change that by editing the following line in modules/editorial/editorial.tpl:

{if $homepage_logo}<img src="{$this_path}homepage_logo.jpg" alt="{$xml->body->$title|escape:'htmlall':'UTF-8'|stripslashes}" />



Change it to the following:

{if $homepage_logo}<img src="{$this_path}homepage_logo.jpg" alt="{*{$xml->body->$title|escape:'htmlall':'UTF-8'|stripslashes}*}Put your alt text here" />



Change "Put your alt text here" to whatever you want the alt tag to be. I commented out the old code instead of deleting it so you can easily change it back in the future if needed.

Link to comment
Share on other sites

×
×
  • Create New...