• Hi

    I have issues with woocommerce shop page.

    We have a shortcode for a carousel which adds inline style like this into the page content.

    <style>
    #carousel_666fcf1eec4d8de0cdb32bc8109a0a25 > ul > li {
    	width: 100px;
    	height: 132px;
    }
    </style>

    It works in every page but not in the shop page. In the shop page the <style> and </style> are removed.

    How to prevent this from happening?

Viewing 1 replies (of 1 total)
  • Thread Starter BackuPs

    (@backups)

    it is caused by line 712 in woocommerce/includes/wp-template-functions.php.

    It should only sanitize the description and not the whole content ! Please revert that change as this is not correct code.

Viewing 1 replies (of 1 total)
  • The topic ‘Is woo commerce removing inline style in the page?’ is closed to new replies.