-
AuthorPosts
-
December 13, 2015 at 4:42 pm #551731
Hi there,
I have a table being imported via CSV, the data is exported as all caps. But I need the first column (Fund Name) to be in Sentence Case.
When I try lowercase like below, it works, but when I use capitalize instead, it doesnt. Any idea why and how I can change it? (need just the first letter in Caps and the rest in lower)
.fundname {
text-transform: lowercase;Thank you!
December 13, 2015 at 11:17 pm #551815Hey janicenisha!
Please try to use the !important element and let us know if it works
.fundname {
text-transform: lowercase !important;
}Cheers!
BasilisDecember 14, 2015 at 5:41 am #551936Hi Basilis,
Thanks, the lowercase worked, was looking actually for a Capitalize or Sentence case, for example :
AFFIN HWANG AIIMAN CASH FUND I –becomes–> Affin Hwang Aiiman Cash Fund I
I tried this but it doesn’t work :
.fundname {
text-transform: capitalize; !important;
}I found this solution – https://github.com/gouch/to-title-case as a solution. Just not quite sure where to paste the codes in Enfold. Am hoping you can have a look at this and let me know where I paste the js code and functions in my child theme.
Thank you very much!
December 14, 2015 at 3:10 pm #552321Hi!
Please try the code as following
#table_1 .fundname { text-transform: capitalize!important; }You can add following code to Functions.php file in Appearance > Editor
function add_custom_code(){ ?> <script> // YOUR CODE GOES HERE </script> <?php } add_action('wp_footer', 'add_custom_code');Regards,
YigitJanuary 7, 2016 at 6:04 am #560999Hi Yigit,
Sorry about the late reply, but thank you very much.
My customer realised they had to use all caps as they also use currencies eg: AUD and MYR
January 7, 2016 at 9:44 am #561074 -
AuthorPosts
- You must be logged in to reply to this topic.
