Title: Shortcode in Elementor full width doesn´t work
Last modified: November 22, 2021

---

# Shortcode in Elementor full width doesn´t work

 *  Resolved [tm86](https://wordpress.org/support/users/tm86/)
 * (@tm86)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/shortcode-in-elementor-full-width-doesnt-work/)
 * Hello,
    I am using Elementor Full Width Template and try to get the shortcode
   to work. I have added the following code to the end of the functions.php of my
   template.
 * > `function my_wpdiscuz_shortcode() {
   >  if (file_exists(ABSPATH . ‘wp-content/
   > plugins/wpdiscuz/templates/comment/comment-form.php’)) { ob_start(); include_once
   > ABSPATH . ‘wp-content/plugins/wpdiscuz/templates/comment/comment-form.php’;
   > return ob_get_clean(); } } add_shortcode(‘wpdiscuz_comments’, ‘my_wpdiscuz_shortcode’);`
 * I have deactivated all other comment plugins and added the shortcode to the end
   of the post, but it won´t show your widget.
 * When I change the full width layout to the standard theme it will show the wpdiscuz
   widget. So the widget works, but it just won´t show with the shortcode in full
   width. I guess something went wrong when adding your code to the functions.php.
   
   Can you help me with that? Thank you.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fshortcode-in-elementor-full-width-doesnt-work%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [tm86](https://wordpress.org/support/users/tm86/)
 * (@tm86)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/shortcode-in-elementor-full-width-doesnt-work/#post-15091236)
 * Also I dont have a directory to /wpdiscuz/templates/comment
    But there is a comment-
   form.php file in /wpdiscuz/themes/default/comment-form.php When replacing this
   part of your code it still doesn´t work.
 *  Plugin Support [gVectors Support](https://wordpress.org/support/users/gvectorssupport/)
 * (@gvectorssupport)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/shortcode-in-elementor-full-width-doesnt-work/#post-15091238)
 * Please read this FAQ: [https://wpdiscuz.com/community/f-a-q/wpdiscuz-shortcode/](https://wpdiscuz.com/community/f-a-q/wpdiscuz-shortcode/)
 *  Thread Starter [tm86](https://wordpress.org/support/users/tm86/)
 * (@tm86)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/shortcode-in-elementor-full-width-doesnt-work/#post-15091514)
 * Thank you. It worked with this code. The other code is obviously outdated.

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

The topic ‘Shortcode in Elementor full width doesn´t work’ is closed to new replies.

 * ![](https://ps.w.org/wpdiscuz/assets/icon-256x256.png?rev=1076265)
 * [Comments - wpDiscuz](https://wordpress.org/plugins/wpdiscuz/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpdiscuz/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpdiscuz/)
 * [Active Topics](https://wordpress.org/support/plugin/wpdiscuz/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpdiscuz/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpdiscuz/reviews/)

## Tags

 * [full-width](https://wordpress.org/support/topic-tag/full-width/)

 * 3 replies
 * 2 participants
 * Last reply from: [tm86](https://wordpress.org/support/users/tm86/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/shortcode-in-elementor-full-width-doesnt-work/#post-15091514)
 * Status: resolved