Tagged: caption, featured image, title
-
AuthorPosts
-
January 22, 2015 at 12:53 pm #383641January 22, 2015 at 10:20 pm #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,
ElliottJanuary 23, 2015 at 3:38 pm #384365Hi 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,
PJanuary 23, 2015 at 10:27 pm #384680Hey!
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,
ElliottJanuary 23, 2015 at 10:31 pm #384686This reply has been marked as private.January 26, 2015 at 5:07 pm #385589Hi!
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, 10 months ago by Elliott.
January 27, 2015 at 12:10 pm #386146Hi Elliot,
I have done it and it still does not work.
regards,
PeterJanuary 28, 2015 at 4:46 pm #387100Hey!
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,
AndyJanuary 28, 2015 at 4:53 pm #387109Hi 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,
PeterJanuary 29, 2015 at 9:10 pm #387963Hey!
I removed the title and alt text and the caption is displaying correctly now.
Cheers!
ElliottJanuary 29, 2015 at 9:49 pm #387975Hi 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,
PeterJanuary 30, 2015 at 10:52 pm #388580Hey!
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!
ElliottJanuary 31, 2015 at 10:07 am #388718Hi 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,
PeterPS. Please close the thread
-
AuthorPosts
- The topic ‘change title and caption of featured image in a post’ is closed to new replies.