AMP code is removed from product category page.
-
The AMP code entered in the description of the product category gets removed.
The same code works in sandbox, or in the pages of the website.<button id="hide-button" on="tap:AMP.setState({message:!message})">Click</button> <p hidden [hidden]="message">Message</p>
I’ve also tried with simpler things like on:tap.hide/show.
The template of the page is built with AMP and every other aspect works.
The problem is that we can’t include AMP code in the description field.
This used to work before we made a major update – wordpress and plugins versions from the beginning of 2021 to the latest at the moment.I’ve disabled the woocommerce html sanitization, following the documentation. This is working – when I enable it the whole html gets removed.
foreach ( array( 'pre_term_description' ) as $filter ) { remove_filter( $filter, 'wp_filter_kses' ); } foreach ( array( 'term_description' ) as $filter ) { remove_filter( $filter, 'wp_kses_data' ); }
Thanks,
KamenThe page I need help with: [log in to see the link]
- The topic ‘AMP code is removed from product category page.’ is closed to new replies.