Does Slider Caption Support HTML
Permalink Browser Info Environment
it looks like the "caption" area in the slider does not support html? is this correct. How can i correct this to accommodate html.
Type: | Discussion |
---|---|
Status: | In Progress |
This does except HTML - it looks like you may have an error in your code (maybe an unclosed element?). I just tested this with:
The following
works correctly but when you put in an href the link works and a button
works if you style it. But, it is generating additional copy. See screen
shot.
Thanks
On 5/5/15, 1:18 AM, "concrete5 Community" <discussions@concretecms.com>
wrote:
<h1>Test Header</h1>
works correctly but when you put in an href the link works and a button
works if you style it. But, it is generating additional copy. See screen
shot.
<a href="http://google.com">Read More</a>
Thanks
On 5/5/15, 1:18 AM, "concrete5 Community" <discussions@concretecms.com>
wrote:
OK, I can see your issue. The caption text was never meant to contain a link - the caption text when populated is used as the images 'alt' text so when a link is added this breaks thus the additional unwanted text.
If you look in packages/alpha/blocks/orbit_image_slider/controller.php line 172 you will see...
Try changing it to...
That should do it...
If you look in packages/alpha/blocks/orbit_image_slider/controller.php line 172 you will see...
$slides[$count]['slideImageTag'] = $html->image($slideImage->getURL(), null, null, array('alt'=>$slide['slideCaption']));
Try changing it to...
$slides[$count]['slideImageTag'] = $html->image($slideImage->getURL(), null, null, array('alt'=>''));
That should do it...