ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down.
Read our Farewell Blog Post for more details.
I will like to put alt on the search image. You know how you can have image instead of button in the search . I will like to put an alt for accessibility reasons....
Instead of an override (wich is almost the same) I will show how you can do that with an "Alternative layout" (wich is new in Joomla 1.7 ...
1.in the html-folder of your template create a folder
mod_search
2. copy this file
your-joomla-root/modules/mod_search/tmpl/default.php
into this new folder and rename it to mysearch.php
your-joomla-root/templates/rt_gantry/html/mod_search/mysearch.php
3. open mysearch.php and find
$button = '<input type="image" value="'.$button_text.'" class="button'.$moduleclass_sfx.'" src="'.$img.'" onclick="this.form.searchword.focus();"/>';
change alt="my text" to want you want
and save that.
4. open your mod_search module in module-manager.
On the right side in Advanced Options you can find "Alternative Layout".
Choose the new "mysearch"-layout and save that.