WooCommerce display picture problem

Hi guys,

I have a strange problem with my site www.happyskirtt.com. I used to have a nice big category page (see https://www.happyskirtt.com/product-categorie/kelly-plooirok/). But when I tried to change the picture on https://www.happyskirtt.com/product-categorie/hepburn-tulprok-pencilrok/ it didn’t work as usual. I couldn’t insert the code for showing that picture in the Hepburn category. I add the two back end category pages to see the differences.

I hope you can help me.

P.S. Sorry I uploaded one picture two times.

Ton in 't Veld

Hi There,

By default, the WordPress will strip out all the HTML tags in category description.

To disable this, you have to setup a child theme:

After that add this custom code under functions.php file locates in your child theme:

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' );
}

For more information, please take a look at this article:

Hope it helps :slight_smile:

Hi Thai,

Yes, that helped. I already had a Child Theme installed, so it wasn’t difficult at all.

Many thanks,
Ton

Glad to hear it’s sorted, Ton.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.