HTML tags get stripped in category descriptions in WordPress by default. There are some plugins to enable rich text editing or just to get back to HTML formatting in description texts. But simple code addition to theme’s (or child theme) functions.php
can resolve this issue. This also will be valid for a WooCommerce shop products categories.
// Allow markup in category descriptions $filters = array( 'pre_term_description', 'pre_link_description', 'pre_link_notes', 'pre_user_description' ); foreach ($filters as $filter) { remove_filter($filter, 'wp_filter_kses'); }
This not working