Title: Video shortcode missing a  tag
Last modified: August 21, 2016

---

# Video shortcode missing a tag

 *  [John Peden](https://wordpress.org/support/users/jcpeden/)
 * (@jcpeden)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/video-shortcode-missing-a-tag/)
 * Hi,
 * When I insert videos into a page using the shortcode, my sidebar appears within
   my content element. When I remove all video shortcodes, the problem is fixed.
   Is it possible that the shortcode is missing a </div> tag?
 * [http://wordpress.org/plugins/contus-video-gallery/](http://wordpress.org/plugins/contus-video-gallery/)

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

 *  [karthikeyani](https://wordpress.org/support/users/karthikeyani/)
 * (@karthikeyani)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/video-shortcode-missing-a-tag/#post-4236189)
 * Hi,
 * To resolve the issue, please follow the below steps.
 * \wp-content\plugins\contus-video-gallery\front\views\videoshortcode.php
 * 1) Find class=”video-page-views” around line no 400 and find the code
 *     ```
       $output             .= '<div class="video-page-views"><strong>' . __("Views", "video_gallery") . '       </strong>: ' . $hitcount . '</div></div>';
       ```
   
 * and remove the last </div> tag like the below one.
 * `$output .= '<div class="video-page-views"><strong>' . __("Views", "video_gallery").'
   </strong>: ' . $hitcount . '</div>';`
 * Now find the following code at line no 413
 *     ```
       $output                .=$playlistname . '</div>';
       ```
   
 * and replace with the below code.
 *     ```
       $output                .=$playlistname . '</div></div>';
       ```
   
 * 2) Go to line no 728 and find the below code.
 *     ```
       $output                 .= '</ul></div>';
                   }  else {
                       $output                 .= '</div>';
                   }
       ```
   
 * and replace with following code.
 *     ```
       $output                 .= '</ul>';
                   }
                       $output                 .= '</div>';
       ```
   
 * 3) find “## Display Related videos starts here” before the line you can find `
   $output .='</div>';` around line no 647. Now replace with `$output .='</div></
   div>';`
 * If you are still facing the same issue feel free to contact us.
 *  Thread Starter [John Peden](https://wordpress.org/support/users/jcpeden/)
 * (@jcpeden)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/video-shortcode-missing-a-tag/#post-4236191)
 * Thanks for the help, I was hoping the plugin author could patch and update the
   plugin?
 *  [karthikeyani](https://wordpress.org/support/users/karthikeyani/)
 * (@karthikeyani)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/video-shortcode-missing-a-tag/#post-4236192)
 * Hi,
 * Sure we will update this issue in package soon.

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

The topic ‘Video shortcode missing a tag’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/contus-video-gallery_ba544b.svg)
 * [WORDPRESS VIDEO GALLERY](https://wordpress.org/plugins/contus-video-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contus-video-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contus-video-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/contus-video-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contus-video-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contus-video-gallery/reviews/)

## Tags

 * [div](https://wordpress.org/support/topic-tag/div/)
 * [element](https://wordpress.org/support/topic-tag/element/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)
 * [sidebar](https://wordpress.org/support/topic-tag/sidebar/)

 * 3 replies
 * 2 participants
 * Last reply from: [karthikeyani](https://wordpress.org/support/users/karthikeyani/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/video-shortcode-missing-a-tag/#post-4236192)
 * Status: not resolved