Hi,

Is there a way to remove the "Weather forecast from yr.no, delivered by the Norwegian Meteorological Institute and the NRK" text?

In my case, it remains untranslated, causing UI/UX issues.

Thanks in advance!

Comments

jorisx’s picture

You could use css and set the last p to display none and then add a translation via p:nth-last-child etc etc

.weather p:last-child { display: none; }
.weather p:nth-last-child(2):after{
	content: "This is my translated text";
	display: block;
	clear: both;
	font-size: 1rem;
}
toddy’s picture

Assigned: Unassigned » toddy
Status: Active » Closed (works as designed)

No, the text cannot and may not be removed. Please do not set the display to none with CSS. The requirements for free use of weather data by yr.no explicitely state that the text must be there. If not, you risk being blocked from their free weather data service without any advance warning.

So I strongly advise you to keep that text.

Moreover, the text can be translated easily, if you've enabled the core modules "Locale" and "Content translation". If you've downloaded and enabled the module "Localization update" (l10n_update), the translations could even be downloaded automatically.

Regards,
Tobias