• My client has a slider where some slides have captions and some don’t. In this case, the empty captions showed up as white boxes. Being an empty strong elements with padding and a background color.

    This has been fixed by replacing:


    <?php echo $slide[‘image’][‘caption’] ?>

    with this:

    <?php
    $theCaption = $slide[‘image’][‘caption’];
    if ( !$theCaption == “” ) {
    echo ““;
    echo $theCaption;
    echo “
    “;
    } ?>

    In views/ssp_skins/default/slider.php

    https://wordpress.org/plugins/simple-slider-ssp/

  • The topic ‘Empty captions’ is closed to new replies.