• Hi there,

    Really like this plugin – so firstly, thank you!

    I like how with Nextgen Gallery you can select which template to use and then you can make your own in the /view folder.

    Where is the template file for this addon? I have noticed none of my images alt text is being pulled through (Title is working fine). So just wanted to check that the html/php is in the right place.

    Thanks!

    https://www.ads-software.com/extend/plugins/nextgen-nivoslider/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Aldert Vaandering

    (@paperfeed)

    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 https://support.dev7studios.com/articles/nivo-slider-jquery-plugin/creating-custom-themes for more information

    Thread Starter Meanski

    (@meanski)

    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=”https://www.xxx.com.au/wp-content/gallery/home-slider/dangerousgoods.jpg&#8221; 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

    Plugin Author Aldert Vaandering

    (@paperfeed)

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Alt attribute/Editing the frontend template’ is closed to new replies.