Title: wpautop filtering shortcode output
Last modified: August 9, 2017

---

# wpautop filtering shortcode output

 *  [Jeff](https://wordpress.org/support/users/splatterrific/)
 * (@splatterrific)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/wpautop-filtering-shortcode-output/)
 * I’ve been trying to get this plugin to work on a fresh instance of WordPress 
   using the Storefront theme, and Galleria child theme.
 * The primary problem is that wpautop is filtering the shortcode’s output, such
   that there are `<p>` tags wrapping around every line break in the javascript 
   and CSS that my shortcode renders on the page.
 * Here’s an example: [https://www.screencast.com/t/SrkiMNJw4kS](https://www.screencast.com/t/SrkiMNJw4kS)
 * I’ve tried editing `woocommerce-products-slider/templates/scripts.php` to remove
   as much of the line breaks as I could find. It hasn’t gotten rid of the paragraph
   tags though. Could I be editing the wrong file? I’m 100% sure it’s not from caching.
 * Any help would be appreciated here. Thanks very much!
 * Regards,
    Jeff

Viewing 1 replies (of 1 total)

 *  Plugin Author [PickPlugins](https://wordpress.org/support/users/pickplugins/)
 * (@pickplugins)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/wpautop-filtering-shortcode-output/#post-9404388)
 * Thanks for your post.
 * We are reporting this issue and try to solve in better way.
 * you will need to remove wpautop for content to fix the issue.
 * Please add following function to your theme functions.php file
 * `remove_filter( 'the_content', 'wpautop' );`
 * Regards

Viewing 1 replies (of 1 total)

The topic ‘wpautop filtering shortcode output’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-products-slider/assets/icon-256x256.png?rev=
   3297751)
 * [Product Slider, Product Grid, Product Masonry](https://wordpress.org/plugins/woocommerce-products-slider/)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-products-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-products-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-products-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-products-slider/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [PickPlugins](https://wordpress.org/support/users/pickplugins/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/wpautop-filtering-shortcode-output/#post-9404388)
 * Status: not resolved