Adding Product Page Description - by lisamarie

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

  • Avatar: lisamarie
    lisamarie
    Participant
    November 27, 2015 at 14:43

    Hello,
    I was wondering how to add a product category description. I have entered it in the description section of the category but under the box it says “The description is not prominent by default; however, some themes may show it.” Is there a CSS way to add it by chance ?

    Also, one the portfolio page I would like to add a little something but it is not displaying for some reason.

    sincerely,
    LM

    Please, contact administrator
    for this information.
    7 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    November 27, 2015 at 17:30

    Hello,

    Please show a direct page where that text should be displayed and clarify with more details what you want to add to Portfolio page.

    Best regards,
    Jack Richardson.

    Avatar: lisamarie
    lisamarie
    Participant
    November 30, 2015 at 17:37

    Thank you for looking into this further for me. I have added links to describe further. See in private content.

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    December 2, 2015 at 11:29

    Hello,

    I’ve set to show product category description in Settings > Store > Presentation tab > Product Category Settings > Show Product Category Description > Yes.
    Please check product categories where you added description.

    If you want to add some text to Portfolio page you need edit the file wp-content/themes/blanco/portfolio.php and write the content after line 43.

    Regards,
    Eva Kemp.

    Avatar: lisamarie
    lisamarie
    Participant
    December 2, 2015 at 18:48

    Thank you. I now see it on the Product Category Description. Is there any way to format the paragraph.
    I try adding html and it doesn’t keep.

    Thank you for that portfolio info. Where do I access this? How do I find line 43?

    Avatar: Eva
    Eva Kemp
    Support staff
    December 2, 2015 at 20:09

    Hello,

    You need edit the file via FTP.
    Please clarify how you want to format the paragraph.

    Regards,
    Eva Kemp.

    Avatar: lisamarie
    lisamarie
    Participant
    December 3, 2015 at 17:28

    This is what is looks like now:
    https://kingofrocks.com/products-page/custom/

    There is a part that is in bold “A note on renderings”, I would like that and everything after as the start of a new paragraph with a line between the paragraph before.

    How do I find line 43 for the protfolio page? I use filezilla, and follow the path you mentioned “wp-content/themes/blanco/portfolio.php” – when i get to the last part there is nothing to edit, no line numbers?

    thanks LM

    Avatar: Eva
    Eva Kemp
    Support staff
    December 3, 2015 at 19:30

    Hello,

    I’ve added this code in 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' );
    }

    Now you can add html tags to product category description.
    Also I’ve added </br> and <hr> tags for “Custom” category.
    Please check it.

    Sorry, but I don’t know what text editor you use to edit portfolio.php file. Perhaps strings number is disabled in the settings of the editor. As an alternative you can just count strings from 1 to 43.

    Regards,
    Eva Kemp.

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

You must be logged in to reply to this topic.Log in/Sign up

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