Shortcode in Elementor full width doesn´t 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 to see the link]
The topic ‘Shortcode in Elementor full width doesn´t work’ is closed to new replies.