Home › Forums › Support › Add custom text before price for furniture category. This topic has 7 replies, 3 voices, and was last updated 3 years, 11 months ago by David. Viewing 8 posts - 1 through 8 (of 8 total) Author Posts April 27, 2020 at 4:01 am #1257490 _blank Hi My client would like to add the text “From” before the Price for just the furniture category archive. Is it best to use PHP snippet for woocommerce_after_shop_loop_item_title to do this or can you help with the code? Thanks Scott April 27, 2020 at 7:09 am #1257785 DavidStaff Customer Support Hi there, Simplest way is with with some CSS like so: .woocommerce ul.products li.product .price .amount:before { content: 'From '; } April 27, 2020 at 10:05 am #1258275 _blank Hi David, Thanks that does work for every product. But they want to do it just to the “Furniture” category https://www.salvesengraham.com/product-category/furniture/ Thanks Scott April 27, 2020 at 4:47 pm #1258714 TomLead Developer Lead Developer Hi there, Try this instead: .woocommerce.term-furniture ul.products li.product .price .amount:before { content: 'From '; } April 28, 2020 at 1:23 am #1259044 _blank Hi Tom, That worked thanks! I just noticed on the Furniture product pages we have a row of related products in that category too. Tried added this CSS but didn’t work. .woocommerce.term-furniture .woocommerce-LoopProduct-link .related ul.products li.product .price .amount:before { content: ‘From ‘; Hope you can help. Thanks Scott April 28, 2020 at 3:47 am #1259242 DavidStaff Customer Support Try this CSS instead: .woocommerce ul.products li.product_cat-furniture .price .amount:before { content: 'From '; } April 28, 2020 at 5:00 am #1259326 _blank Hi David, Thats brilliant worked perfectly. Many Thanks Scott April 28, 2020 at 5:26 am #1259354 DavidStaff Customer Support Glad we could be of help Author Posts Viewing 8 posts - 1 through 8 (of 8 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In