If you want to alter the CSS for the nivo slider please consider altering one of the themes supplied or by creating a new theme. You can find these in the themes directory.
See http://support.dev7studios.com/articles/nivo-slider-jquery-plugin/creating-custom-themes for more information
Thanks for the reply, but unfortunately, not quite what I’m after.
The themes you talk about only allows different CSS – I’m actually talking about the front-end HTML write up that is being produced.
I’m currently using this shortcode:
[ngg-nivoslider gallery=”1″ html_id=”about-slider” caption=”description” order=”sortorder” controlNav=”false” effect=”fade” pausetime=”5000″ animspeed=”500″]
But in the HTML code I’m reciving no alt text (removed some revealing content):
<img src=”http://www.xxx.com.au/wp-content/gallery/home-slider/dangerousgoods.jpg” title=”xxx” style=”width: 934px; visibility: hidden; display: inline;”>
As you can tell – there is no Alt text but I am using the field within NextGen Gallery. It’s really stuffing up my validation.
Any ideas? Thanks
So basically what you’re looking for is having your alt text added as alt=”…” in the <img> element? If so that’s a matter of tweaking the plugin a bit.
Specifically just look for
$output .= ‘<img src=”‘;
in the ngg-nivoslider-widget.php
and change it to
$output .= ‘<img alt=”‘ . $image->alttext. ‘” src=”‘;
quick fix for now.
I’ll add it to the next version perhaps.