Responsive Banner Slider - How to make alt text display on hover
- Posted by clarkargus (10) Offline
I'm using the Responsive Banner Slider and would like to have the Alternative Text display when I hover over the banner rather than the banner name. Is this possible? I'm using the Nivo slider options with the default theme and the caption setting turned off.
11 years 4 months ago #1
by clarkargus
Please Log in or Create an account to join the conversation.
- Posted by erwinschro (1034) Offline
Well you can try it by changing these instance part of the Nivo code section inside
/modules/mod_responsivebannerslider/tmpl/default.php
notice the title part on it? you can change it with the following
11 years 4 months ago #2
by erwinschro
/modules/mod_responsivebannerslider/tmpl/default.php
<a
href="<?php echo $link; ?>" target="_blank"
title="<?php echo htmlspecialchars($item->name, ENT_QUOTES, 'UTF-8');?>">
notice the title part on it? you can change it with the following
...
title="<?php echo htmlspecialchars($alt, ENT_QUOTES, 'UTF-8');?>">
Please Log in or Create an account to join the conversation.
- Posted by clarkargus (10) Offline
- Posted by clarkargus (10) Offline
I have another instance of the Responsive Banner Slider that uses the Adapter options. I need to make the same change that you suggested for the Nivo option (make Alt text appear on hover). I'm having trouble finding where to make that change (my PHP skills are not that good). Could you point me to where to find the code?
11 years 4 months ago #4
by clarkargus
Please Log in or Create an account to join the conversation.
- Posted by erwinschro (1034) Offline
Hi so sorry for this late reply....have you found it?
If you haven't, the principle is similar with above, you just need to edit those alt property at the Adaptor code section,
you will find it below this line
<?php if ($sliderType==0) : // Enable For Adaptor ?>
...
<?php endif; ?>
11 years 4 months ago #5
by erwinschro
If you haven't, the principle is similar with above, you just need to edit those alt property at the Adaptor code section,
you will find it below this line
<?php if ($sliderType==0) : // Enable For Adaptor ?>
...
<?php endif; ?>
Please Log in or Create an account to join the conversation.