I'm using cycle 2 advanced custom template http://jquery.malsup.com/cycle2/demo/caption.php but I want to format the content of the alt attribute. I'm trying to enter the actual HTML as a string as it's alt attribute but my formatting doesn't work cause the text comes out as black instead of a shade of red. Here is my alt string code.
alt="“<h1 class=’sourcesans’ style=’font-size:30px;color: #9a2425;font-weight: 600;padding-bottom: 30px’>Sterling Assets Management & Trustees Limited</h1>”"
Have you tried saving the alt HTML you want in a php variable and then echoing it out on the HTML level? If not please try this:
Here's a guide and should help you on your way... Excerpt :