How to add iframe in the description of category page of woocommerce ?
-
Hi,
I try to add a youtube video in the description of WooCommerce Category page, but the code is removed.
I try to fix it with differents codes, but nothing is working.
It triied this https://woocommerce.com/document/allow-html-in-term-category-tag-descriptions/
/** * Allow HTML in term (category, tag) descriptions */ foreach ( array( 'pre_term_description' ) as $filter ) { remove_filter( $filter, 'wp_filter_kses' ); if ( ! current_user_can( 'unfiltered_html' ) ) { add_filter( $filter, 'wp_filter_post_kses' ); } } foreach ( array( 'term_description' ) as $filter ) { remove_filter( $filter, 'wp_kses_data' ); }
Maybe this code is not for the woocommerce category page, but the category of wordpress.
Do you have any idea how to remove the specific filter that remove html tags in the woocommerce category page?
Any solutions ?
Thanks
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How to add iframe in the description of category page of woocommerce ?’ is closed to new replies.