Plugin Author
tuxlog
(@tuxlog)
I think you can change the css.
copy wp-forecast-default.css to wp-forecast.css. This prevents your changes being overwirtten by future updates.
Add “text-transform: capitalize;” to CSS class div.wp-forecast-curr-details.
This should do the trick.
Thank you. I’m sorry, I wasn’t clear. My client wants it to say:
Sunrise
Sunset
All lower case, but initial uppercase letter. That would require changing the string somewhere in the PHP code, wouldn’t it?
I think I can use text-transform: capitalize;
I will try that, thank you!
Sorry to keep posting!
text-transform: capitalize; does work, but also capitalizes Am and Pm. That looks bad.
Sunrise: 6:41 Am
Sunset: 4:59 Pm
I am going to advise my client to either leave it alone, or use text-transform: uppercase; on the whole lines.
Plugin Author
tuxlog
(@tuxlog)
Okay, I see, what about changing it in the translations?
Edit lang/wp-forecast_en_US-en_US.po and translate sunset to Sunset and sunrise to Sunrise. Than generate a mo file.
I didn’t try but seems to be a way around changing the php code or use a piece of javascript to replace sunset with Sunset.
I am going to see if the client will agree to all uppercase. I think that’s easiest (for me). 🙂
If he doesn’t agree, I will try translating.
Thank you for your help!