Home Forums Theme support Carina Theme – Featured Image Caption

This topic contains 1 reply, has 2 voices, and was last updated by  7Theme Support 2 years, 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Hello 7theme,

    I noticed the below code in the 7league-funtions.php file of the Carina Theme.

    /* THIS FUNCTION RETURNS THE THUMBNAIL CAPTION, USEFUL TO DISPLAY A FEATURED IMAGE */
    
    function get_post_thumbnail_caption() 
    	{
      	***
    	}

    This code should display the caption text for the featured image of a blog post; correct?

    For some reason that is not happening for me. I am using a child theme however no 7league-funtion calls are replaced in the child theme.

    This post here has a caption in the image to provide image credits:
    Blog Post

    Is there something additional that needs to be done to ensure the image caption is displayed for the featured image?

    -BC

    Hi,

    it’s only a function to get the caption of a featured image, but this means not that it’s always in use for every featured image. We made the demo websites to show how the theme work, and if there is no caption on / below the image, then we don’t used it in the theme.

    But you can use this function to return the caption below the image, i.e.

    < ?php echo get_post_thumbnail_caption(); ?>

    For future posts: don’t show full functions or other php code in the forum. Thank you.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.