Weather automatic location detection

Posted in: Newspaper
Post count: 39

Hello

Is there anyway to make the weather text widget (I used it on header) to automatically locate the visitor’s location and shows weather for it?

Even if it needs coding, just let me know from here I need to start then I’ll use a tool to generate a custom code for it.

Post count: 21065

Hello @gorthi!

We have only this widget tested with our theme: https://forum.tagdiv.com/weather-widget/
You can use any other plugin as well: https://www.elegantthemes.com/blog/wordpress/best-wordpress-weather-widget-plugins
A shortcode can be inserted by using the element called “Column text” or “Text with title”. “Column text” and “text with title” elements have a button called “edit content” and if you click on that button, the WP Editor will open, and you can add some text/code/shortcode there. Close the WP Editor from X, save the changes from Composer and view the page to see the changes.

Thank you!

Post count: 39

Can you please tell me where to edit this specific widget code on your theme ?

I’d like to customize it for that purpose

Post count: 21065

Hello @gorthi!

Check on this path: td-composer/legacy/Newspaper/includes/shortcodes/td_block_weather.php

Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.