• Resolved Paul Hartman

    (@paul-hartman)


    My client would like “sunrise” and “sunset” to be capitalized. Is there any way to do that other than editing the PHP code? (I don’t want to have to edit every time there is a plugin update.)

    https://www.lakeroland.org/ Click on “LAKE ROLAND HOURS.” Also in footer under “PARK HOURS”

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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.

    Thread Starter Paul Hartman

    (@paul-hartman)

    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?

    Thread Starter Paul Hartman

    (@paul-hartman)

    I think I can use text-transform: capitalize;

    I will try that, thank you!

    Thread Starter Paul Hartman

    (@paul-hartman)

    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.

    Thread Starter Paul Hartman

    (@paul-hartman)

    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!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Uppercase?’ is closed to new replies.