• Resolved Droidism

    (@droidism)


    Hi,

    It’s possible to allow the use of html in the WC Product Category description.

    i.e.;

    <h2>My great Product Category H2 Title</h2>
    <p>Some great SEO optimized content of x words....</p>

    This with the help of adding the following code to your functions.php/custom-plugin.php;

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

    But, how can I allow the use of html in the WC Cat Titles?

    What I would like to be able to do is the following; <span>Great</span> Category Title and have it saved to the db without stripping the <span>...</span>. This would allow me to go nuts with css. Give the H1 span a color, make it flash, declare display: none, whatever tickles my fancy.

    Thanks in advance to anyone who is willing to enlighten me!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Allow HTML in WC Product Category Title’ is closed to new replies.