Title: Add div&#039;s
Last modified: August 30, 2016

---

# Add div's

 *  [gemba](https://wordpress.org/support/users/gemba/)
 * (@gemba)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/add-divs/)
 * Hi, I am trying to add different div’s around either the featured image or video.
   Below is the code I am using but this does not seem to be working… any ideas?
 *     ```
       <?php
       if ( has_post_thumbnail() ) {
       	echo '<div class="ft-img">';
       	echo get_the_post_thumbnail( $post->ID, 'full' );
       	echo '</div>';
       }
       elseif ( has_post_video() ) {
       	echo '<div class="ft-vid">';
       	echo get_the_post_video( $post->ID, 'full' );
       	echo '</div>';
       }
       ?>
       ```
   
 * [https://wordpress.org/plugins/featured-video-plus/](https://wordpress.org/plugins/featured-video-plus/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Alex](https://wordpress.org/support/users/ahoereth/)
 * (@ahoereth)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/add-divs/#post-6303805)
 * THe plugin does not manipulate stuff outside of the featured image/video. This
   probably is not a support question related to the plugin – does `echo` at this
   code location do anything at all?

Viewing 1 replies (of 1 total)

The topic ‘Add div's’ is closed to new replies.

 * ![](https://ps.w.org/featured-video-plus/assets/icon.svg?rev=1170997)
 * [Featured Video Plus](https://wordpress.org/plugins/featured-video-plus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/featured-video-plus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/featured-video-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/featured-video-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/featured-video-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/featured-video-plus/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Alex](https://wordpress.org/support/users/ahoereth/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/add-divs/#post-6303805)
 * Status: not a support question