(Most) HTML Formatting Stripped from Product Category Description

This topic has 9 replies, 3 voices, and was last updated 7 years, 3 months ago ago by Eva Kemp

  • Avatar: tara.hagemann@m45.com
    tara.hagemann@m45.com
    Participant
    January 4, 2017 at 23:17

    In a recently closed thread, 8Theme support said, “You can write HTML syntax in the category description. It will work, but by default we don’t have html editor there as wordpress editor for posts/pages.”

    That’s fine. We’re better at HTML encoding than the client; however, I’m having trouble with this particular item in practice.

    I want to format the “Description” field on the “Edit Product Category” page of the admin. I am attempting to use H2, OL, LI, and B tags. So far, the only tags that are preserved are bold (<b></b>) and your [etheme_list] shortcodes. When I save, all of the other intended formatting is gone.

    Are there other shortcodes, or do I need to escape the HTML in some fashion to achieve basic intended presentation?

    8 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    January 6, 2017 at 10:01

    Hello,

    Please provide us with FTP and WP Dashboard credentials in Private Content.

    Regards,
    Eva Kemp.

    Avatar: tara.hagemann@m45.com
    tara.hagemann@m45.com
    Participant
    January 6, 2017 at 17:25

    Thanks, Eva. This is very high priority for us. See below.

    It’s easy to test. Just put <h2>MyHeading</h2>, etc., in any category description and save. No need to load the front end.

    Please, contact administrator
    for this information.
    Avatar: tara.hagemann@m45.com
    tara.hagemann@m45.com
    Participant
    January 6, 2017 at 17:56

    My apologies: I realized I forgot to give you the wp-admin/ logon address. Below.

    It’s early for me. =D

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    January 7, 2017 at 11:41

    Hello,

    I’ve added this code in child functions.php file:

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

    Please try to add HTML tags now.

    Regards,
    Eva Kemp.

    Avatar: tara.hagemann@m45.com
    tara.hagemann@m45.com
    Participant
    January 9, 2017 at 02:13

    That seemed to do the trick. It saves and formats as expected now. Thanks very much.

    This question may be unrelated, but do you know if there is an etheme shortcode for an ordered (numbered) list?

      doesn’t seem to present as expected in the pages.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    January 9, 2017 at 09:33

    Hello,

    Sorry, but we have shortcode only for unordered list – [etheme_list style="circle"].

    Best regards,
    Jack Richardson.

    Avatar: tara.hagemann@m45.com
    tara.hagemann@m45.com
    Participant
    January 9, 2017 at 20:31

    Thanks again. That’s fine. CSS works just as well.

    Avatar: Eva
    Eva Kemp
    Support staff
    January 10, 2017 at 10:24

    Hello,

    You’re welcome.

    Regards,
    Eva Kemp.

  • Viewing 9 results - 1 through 9 (of 9 total)

The issue related to '‘(Most) HTML Formatting Stripped from Product Category Description’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.