Is there a way to round the value that the weather widget displays?

Posted in: Newspaper
Post count: 24

Hi,

as the title says, is there a way to round the number that weather widget displays?

We currently do this via JS but unfortunately there is no way to get around the fact the widget initially shows one value (e.g. 0.5), and then when the page is loaded JS executes and rounds it to 1. We could also initially hide the widget and then display it when the rounding is done but that feels weird in the site because the weather widget sits in the header of the site.

If there is no way to do this right now it would be great to see this small change in the upcoming releases of Cloud Library plugin.

Post count: 27744

Hello,

Unfortunately, no. You can try to set the code in the Theme Panel -> Analytics/JS code in the head with script tags.

Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.