• Resolved CherylS

    (@cheryls)


    Is there a way to show captions on slides? Some of the images I want to use require giving credit to the owner of the image. I can use the overlay but I’m not sure that’s the best option.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author seothemes

    (@seothemes)

    @cheryls I just released an update (1.0.7) which makes this possible with a filter. Add the following code snippet to your themes functions.php file:

    
    add_filter( 'seo_slider_image_output', function ( $img_html, $img_id ) {
    	return sprintf( '%s<figcaption>%s</figcaption>', $img_html, get_the_excerpt( $img_id ) );
    }, 10, 2 );
    
    Thread Starter CherylS

    (@cheryls)

    I updated the plugin and added the code to the functions.php file, but the caption still doesn’t show on the slider (I entered it into the image itself), and now the heading I have on the picture I tested is now shifted to the right. Looks like the figcaption is sitting to the left of the heading ONLY on one picture.
    https://solowebsolutions.com/oar/

    Does the caption end up going directly onto the image? That’s not an advantage over writing it into the content.

    • This reply was modified 5 years, 3 months ago by CherylS.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Captions on sliders’ is closed to new replies.