Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Weather Atlas

    (@weatheratlas)

    Hello Alistair,

    The Chester, Vermont, USA (2391287) already exists, but there is a limit (20 results) in a dropdown and unfortunately more than 20 results for Chester.

    This bug can not be fixed until the next update or editing a “weather-atlas/admin/js/weather-atlas-admin.min.js” in Admin panel from 20 to 30.
    (Let us know if you would like to do this, so we can post the instructions)

    The workaround (a simpler solution) is to add the widget (and style it) as a shortcode:
    [shortcode-weather-atlas city_selector=2391287]

    Thread Starter Alistair Barnett

    (@solostream)

    Oh, interesting. I didn’t realize the dropdown limit is what’s causing that location to not show.

    I tried using the shortcode, but for whatever reason it didn’t work. I previously had Montpelier, Vermont selected, which continued to show even after replacing with the shortcode. Thinking it might be because the widget info was cached or remembered by the browser, I deleted then recreated the widget. But the default New York location continued to show.

    I ended up having to edit the .js file you mentioned. It didn’t work at first (searching by city showed no results in dropdown) so I also modified the non-minified version, changing the limit from 15 to 30. Was that needed?

    Plugin Author Weather Atlas

    (@weatheratlas)

    Hello,

    if you have changed the default location as a user, the location is saved in your browser as a cookie, so clearing that cookie would fix the issue of changed location in the admin panel, and showing a different location (as it is overridden)

    As for extending the drop down from 20 to more (30), you should edit only weather-atlas-admin.min.js, but afterward, you should clear the cache, so browser loads new (edited) .js

    Let us know if this has fixed the issue, or send additional info (and your website as well)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Vermont location needed’ is closed to new replies.