Adding the % to the facts Template


#1

Hello!

I am working with the facts template and would like to add the % symbol for each value. I tried just adding the symbol to the fact template interface but when updating it, the symbol on each value still won’t show. Is there any code I can add to the php file so it allows the % symbol to show? Help please.

thanks much!

Fabi


#2

Hey,

Yeah, the fields only allow numbers. You don’t need to modify the PHP file, you just need to add this to your custom CSS:


.fact:after {
    content: '%';
}

Let me know if you need the % symbol just for some of the facts and not for all.


#3

Hi Vlad, best developer I’ve encountered – thank you!

Let me know if you need the % symbol just for some of the facts and not for all.

Can you please elaborate? I would like to use % and/or $ on just some values and not others.

Thank you,
Michael