Sunday, 10 December 2017 .::. Your IP: 54.163.209.109 
Home CMS Howto add custom alt and title text in Joomla mod_banners

Howto add custom alt and title text in Joomla mod_banners


Unfortunately by default mod_banners in Joomla is using the banner name as alt text and there is no title text at all. It's quite easy to set this up though.

Firstly you need to edit your helper.php file located at modules/mod_banners directory.

Open the file and find this line:

$imageĀ  = 'imageurl.'" alt="'.JText::_('Banner').'" />';

Now replace it with this:

$imageĀ  = 'imageurl.'" alt="'.$item->description.'" title="'.$item->tags.'" />';

Once this is done you can add the desired alt text within the banner description area and title using the meta tags area.

Good luck!


Reddit! Del.icio.us! Mixx! Free and Open Source Software News Google! Facebook! Slashdot! StumbleUpon! TwitThis Joomla Free PHP