Capitalization in Widget
-
This is a great plugin – thanks! The only thing I would like to change is the capitalization of the words in the widget. For example, I want it to say ‘Humidity’ instead of ‘humidity’… ‘Wind Speed’ instead of ‘wind speed’, etc.
First I tried adding CSS to the div:
div.wp-forecast-curr-details { text-transform: capitalize; }
And that worked great, EXCEPT that it also capitalized the first letter of am/pm, which doesn’t look right either. ??
So, then I went into the language file:
/wp-content/plugins/wp-forecast/lang/wp-forecast_en_US-en_US.po
and found the text there. For example, I changed this:
#: wp-forecast-admin.php:698 wpf_sa_admin.php:415 msgid "Humidity" msgstr "humidity"
to this:
#: wp-forecast-admin.php:698 wpf_sa_admin.php:415 msgid "Humidity" msgstr "Humidity"
After doing that for each condition, I saved the language file and then refreshed my webpage, but it didn’t make any difference. Without the CSS above, the conditions are all still displayed in lowercase instead of title case.
Can you help me figure this out please?
Many thanks!
Terry
- The topic ‘Capitalization in Widget’ is closed to new replies.