Title: Plugin Doesn’t Work With Divi Theme?
Last modified: March 1, 2018

---

# Plugin Doesn’t Work With Divi Theme?

 *  [stevenmayjr](https://wordpress.org/support/users/stevenmayjr/)
 * (@stevenmayjr)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-with-divi-theme-2/)
 * Any thoughts on getting this plugin to work with the Divi theme? I can get it
   to display the caption in any site using the Divi theme.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-doesnt-work-with-divi-theme-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [donnabuk01](https://wordpress.org/support/users/donnabuk01/)
 * (@donnabuk01)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/plugin-doesnt-work-with-divi-theme-2/#post-10155292)
 * Hi Steven. Did you ever find a way to get Divi to show captions on featured images?
   I’m not having any luck with this either. Thank you.
 *  [sidrarubel](https://wordpress.org/support/users/sidrarubel/)
 * (@sidrarubel)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-with-divi-theme-2/#post-10467661)
 * Hello,
 * I am also using Divi and this plugin didn’t work but I found an easy way to add
   the caption below the featured image. You should have a child theme set up, with
   the single.php file copied over from the parent Divi theme.
 * 1. Open the single.php file from your child theme
    2. Paste the following code
   before the closing et_post_meta_wrapper div:
 *     ```
       <div class="et_post_meta_wrapper">
       ...
       <?php if (get_post(get_post_thumbnail_id())->post_excerpt) { // search for if the image has caption added on it ?>
       	<div class="featured-image-caption">
       		<?php echo wp_kses_post(get_post(get_post_thumbnail_id())->post_excerpt); // displays the image caption ?>
       	</div>
       <?php } ?>
   
       </div> <!-- .et_post_meta_wrapper -->
       ```
   
 * 3. Make sure to add your caption to the image in your media library
 * You can then style the caption by targeting the “featured-image-caption” class.
 * Hope that helps!
    -  This reply was modified 7 years, 10 months ago by [sidrarubel](https://wordpress.org/support/users/sidrarubel/).
 *  [simco](https://wordpress.org/support/users/simco/)
 * (@simco)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-with-divi-theme-2/#post-10470251)
 * Hi, I tried your code snippet but it didn’t work. No caption displays. I inserted
   this directly in front of the closing div tag as directed but it displayed the
   caption at the very bottom of the page, not underneath the featured image.
 * This code could work but I think it needs to be repositioned and modified to 
   work around line 64 in the single.php which is where the code for displaying 
   the featured thumbnail is. Please advise.
 *  [sidrarubel](https://wordpress.org/support/users/sidrarubel/)
 * (@sidrarubel)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-with-divi-theme-2/#post-10470627)
 * Hi simco,
 * There are actually two divs in this file with the “et_post_meta_wrapper” class.
   You need to make sure you put it at the end of the first one, just before the
   <div class=”entry-content”> area.
 * I’m using Divi version 3.7, so in my single.php file I added this on line 118,
   but it may be different with different versions of Divi.
 * Hope that helps!

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

The topic ‘Plugin Doesn’t Work With Divi Theme?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/featured-image-caption_884578.svg)
 * [Featured Image Caption](https://wordpress.org/plugins/featured-image-caption/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/featured-image-caption/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/featured-image-caption/)
 * [Active Topics](https://wordpress.org/support/plugin/featured-image-caption/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/featured-image-caption/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/featured-image-caption/reviews/)

 * 4 replies
 * 4 participants
 * Last reply from: [sidrarubel](https://wordpress.org/support/users/sidrarubel/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-with-divi-theme-2/#post-10470627)
 * Status: not resolved