Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #383641

    Hi All,

    I believe by default when you click on a featured image in a post entry it shows in full in a lightbox and the title/caption is the same as that of the post.

    Can this be changed to show the actual title and caption of the image and not of the post?

    regards,
    P

    #384050

    Hi TheElear!

    We just added this feature in 3.0.5. When you edit the featured image of your post you can set the “Caption” text and it will display in the magnific popup.

    Regards,
    Elliott

    #384365

    Hi Elliot,

    When I set the feature image in a post I am picking it up from the media library. It has fields like: title, caption, alt, description.
    But it is still showing the post title in the lightbox.

    regards,
    P

    #384680

    Hey!

    Did you type out some text in the caption field? Are you using Enfold 3.0.5?

    Send us a WordPress login and we’ll take a look.

    Best regards,
    Elliott

    #384686
    This reply has been marked as private.
    #385589

    Hi!

    Try completely deleting Enfold from your WordPress theme directory before downloading + uploading a fresh copy from themeforest. This will ensure all of the theme files are updated.

    Also try activating just Enfold and not your child theme.

    Best regards,
    Elliott

    • This reply was modified 9 years, 9 months ago by Elliott.
    #386146

    Hi Elliot,

    I have done it and it still does not work.

    regards,
    Peter

    #387100

    Hey!

    Please clear your browser cache. I can see the different titles under your images. Under the first image it says: “Teofil Paciorkiewicz …” and under the second one: “Józefa Paciorkiewicz …”. Could you fix it?

    Regards,
    Andy

    #387109

    Hi Andy,

    As you say there are captions under images which are inserted in this post (http://www.paciorkiewicz.pl/2015/01/childhood/).

    However my question is about the featured image of this post – wide image of the house at the top of the post (http://www.paciorkiewicz.pl/2015/01/childhood/ ). When you click on that image the caption under this image shows the caption of this particular post : “Childhood”. My question is how to display the actual caption of this image which is: “A house bought by Teofil in Sierpc”?

    regards,
    Peter

    #387963

    Hey!

    I removed the title and alt text and the caption is displaying correctly now.

    Cheers!
    Elliott

    #387975

    Hi Elliot,

    Indeed it works but in Enfold main theme.
    I have now switched back to the child theme, removed title and alt and this does not work – caption is not displayed. Instead the post title is displayed.

    Any thoughts?

    many thanks,
    Peter

    #388580

    Hey!

    It’s probably some customization you have done in the child theme then. Are you overriding the /includes/loop-index.php template? That is where the code is to display the caption on line 78.

    //preview image description
    $desc = get_post( get_post_thumbnail_id() ) -> post_excerpt;
    $featured_img_desc = ( $desc != null ) ? $desc : the_title_attribute( 'echo=0' );
    

    Cheers!
    Elliott

    #388718

    Hi Elliot,

    I indeed had some changes in the enfold-child /includes/loop-index.php.
    I did not realise that the latest Enfold has this template updated.

    I have now updated my child loop-index.php template and everything works as expected.
    Captions are showing under the images! Also the fields “title” and “alt” do not have to be blank.

    Many many thanks for your help on this issue.
    Very much appreciated.

    Kind regards,
    Peter

    PS. Please close the thread

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘change title and caption of featured image in a post’ is closed to new replies.