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!
Hey janicenisha!
Please try to use the !important element and let us know if it works
.fundname {
text-transform: lowercase !important;
}
Cheers!
Basilis
Hi 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!
Hi!
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,
Yigit
Hi 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