• Jeff

    (@splatterrific)


    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

    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

    (@pickplugins)

    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.