I using "Display the discounted percentage near sale price in Single product pages for WC 3.0+" (Original answer code)
I used this code to show sale percentage after price on single product page. but I want to customize it - to give it background, paddings, etc...
So I need to include CSS class name in that function to be able to customize it via CSS
I want to add it only to "-percentage
" (I don't want it to be applied neither to discounted or regular price)
`. Your question is not entirely clear to me, can you adjust it with more details?– 7uc1f3r Jun 12 '20 at 18:54