This topic has 8 replies, 3 voices, and was last updated 8 years, 11 months ago ago by Eva Kemp
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
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.
Thank you for looking into this further for me. I have added links to describe further. See in private content.
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.
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?
Hello,
You need edit the file via FTP.
Please clarify how you want to format the paragraph.
Regards,
Eva Kemp.
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
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.
You must be logged in to reply to this topic.Log in/Sign up