• Hi,

    Using WP Store Locator with search (location, radius, category), which works fine on desktop at any screen size. However, when on any mobile device the search provides no results, originally I thought it was related to having custom map icons that just weren’t loading, however the map container has the ‘no-results’ (or similar) class so the search just isn’t returning any results. This has been tried on Safari in iPhone and iPad, as well as using the simulated mobile devices in Safari on Mac. Also tried Chrome on Android which also doesn’t work.

    The only error that shows in the console is:
    “The source list for Content Security Policy directive ‘script-src’ contains an invalid source: ”strict-dynamic”. It will be ignored.”

    Apart from that there are no Javascript errors, it just doesn’t return any results.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    What’s the URL? You tried it with a default theme, and all other plugins disabled?

    The store locator code doesn’t contain the ‘strict-dynamic’ words, but since the error says ‘it will be ignored’ I don’t think it’s the reason it doesn’t work.

    If there a plugin that optimizes the code / output for mobile devices?

    Thread Starter alexamity

    (@alexamity)

    The URL is

    https://www.hafod.org.uk/care/

    We aren’t able to disable all plugins as the site is live, however we have disabled all caching/optimisation plugins and it’s still an issue. Will install WP Staging and check the other plugins now

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Search not working on mobile’ is closed to new replies.