Title: Main photo caption
Last modified: August 24, 2024

---

# Main photo caption

 *  Resolved [c3100w](https://wordpress.org/support/users/c3100w/)
 * (@c3100w)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/main-photo-caption/)
 * Hi, how can I set a caption for the main photo in a published post? I use the
   standard Neve version, and I didn’t find such an option. I’m talking about the
   photo’s metadata – e.g. PHOTO BY XXX.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmain-photo-caption%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [mara3](https://wordpress.org/support/users/mara3/)
 * (@mara3)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/main-photo-caption/#post-17976271)
 * Hey there!
 * Thank you for using Neve and for reaching out to us!
 * To clarify, it sounds like you’re referring to the featured image. If that’s 
   the case, the only way to set a caption for that image is by going to the Media
   Library, selecting the specific photo, and adding a caption in the image’s attributes.
 * Let me know if you need any further assistance!
 * Kind regards,
 * Mara
 *  Thread Starter [c3100w](https://wordpress.org/support/users/c3100w/)
 * (@c3100w)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/main-photo-caption/#post-17979282)
 * I have a caption set for each photo, but it doesn’t display on the site.
 * ![](https://i0.wp.com/i.imgur.com/YJb74tj.jpeg?ssl=1)
 *  [mara3](https://wordpress.org/support/users/mara3/)
 * (@mara3)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/main-photo-caption/#post-17980076)
 * Hey [@c3100w](https://wordpress.org/support/users/c3100w/),
 * Thank you for explaining exactly what is the desired behaviour!
 * If you want to display the caption of the featured image you can add the code
   from this link [https://gist.github.com/MarinescuLucia/167522054bab565fea2739cdb1527c9b](https://gist.github.com/MarinescuLucia/167522054bab565fea2739cdb1527c9b).
 * Please keep in mind that we encourage every user to set up a child theme so that
   they won’t encounter any future problems. You can read more about this here [https://docs.themeisle.com/article/985-how-to-create-a-child-theme-for-neve](https://docs.themeisle.com/article/985-how-to-create-a-child-theme-for-neve).
 * Kind regards,
 * Mara
 *  Thread Starter [c3100w](https://wordpress.org/support/users/c3100w/)
 * (@c3100w)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/main-photo-caption/#post-17981902)
 * Thank you, the code works, but now there is too much free space between the image
   and the header (screen 1). Is there any code that will allow me to place a caption
   under the image itself, to make it look like in the article? (screen 2)
 * **Screen 1:**
 * ![](https://i0.wp.com/i.imgur.com/57guj5h.jpeg?ssl=1)
 * **Screen 2:**
 * ![](https://i0.wp.com/i.imgur.com/tge8ZCc.jpeg?ssl=1)
 *  [mara3](https://wordpress.org/support/users/mara3/)
 * (@mara3)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/main-photo-caption/#post-17982809)
 * Hi [@c3100w](https://wordpress.org/support/users/c3100w/),
 * Thank you for the update, I am glad that you succeeded in displaying the caption!
 * To fix the space that is surrounding the caption you can add this snippet of 
   code into the Additional CSS tab:
 *     ```wp-block-code
       .image-caption{     margin-top: 0px !important;      margin-bottom: 0px !important;}
       ```
   
 * Please note that 0 can be changed for any value that suits your needs.
 * Kind regards,
 * Mara
    -  This reply was modified 1 year, 9 months ago by [mara3](https://wordpress.org/support/users/mara3/).
    -  This reply was modified 1 year, 9 months ago by [mara3](https://wordpress.org/support/users/mara3/).
 *  Thread Starter [c3100w](https://wordpress.org/support/users/c3100w/)
 * (@c3100w)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/main-photo-caption/#post-17984218)
 * Thanks a lot! Now the theme looks as it should, I am very pleased. Best regards.
 *  [mara3](https://wordpress.org/support/users/mara3/)
 * (@mara3)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/main-photo-caption/#post-17989803)
 * Hi [@c3100w](https://wordpress.org/support/users/c3100w/),
 * I am glad to hear that I was able to help you with this information!
 * I’m always striving to improve my ability to assist customers, and your feedback
   is incredibly valuable. If you had a positive experience with our interaction
   so far, would you be willing to leave a review about it [here](https://wordpress.org/support/theme/neve/reviews/#new-post)?
 * Sharing your thoughts helps others know what to expect when they contact us.
 * Thanks again for your time and business!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Main photo caption’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/neve/4.2.5/screenshot.png)
 * Neve
 * [Support Threads](https://wordpress.org/support/theme/neve/)
 * [Active Topics](https://wordpress.org/support/theme/neve/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/neve/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/neve/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [mara3](https://wordpress.org/support/users/mara3/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/main-photo-caption/#post-17989803)
 * Status: resolved