WordPress.org

Forums

WP Store Locator
[resolved] URL in Store Listing (12 posts)

  1. adrajana
    Member
    Posted 1 year ago #

    Hi there!

    Chose "If a store url exists, make the store name clickable?", but that seems to only work on the pin pop-up. Is there a way to make it show up in the store listing as well?

    Thanks!

    https://wordpress.org/plugins/wp-store-locator/

  2. Tijmen Smit
    Member
    Plugin Author

    Posted 1 year ago #

    What is the url of your site? Both store names should be clickable if that option if enabled.

  3. tatkins
    Member
    Posted 11 months ago #

    Having the same issue. The url field is just listing the full url in text format. The name is clickable in the popup box on the map but not in the listings below the map.

    http://www.springboardafterschool.com/springboard-schools/springboard-school-locator/

  4. Tijmen Smit
    Member
    Plugin Author

    Posted 11 months ago #

    @tatkins Your site appears to be down?

  5. tatkins
    Member
    Posted 11 months ago #

    hmm, that url is working ok from here.

  6. tatkins
    Member
    Posted 11 months ago #

    f.y.I.
    Try 02201 for a zip to get some listings.

  7. Tijmen Smit
    Member
    Plugin Author

    Posted 11 months ago #

    @tatkins can you open the /js/wpsl-gmap.js and replace the code on line 956 with this.

    moreInfoContent += "<span><strong>Url</strong>: <a " + newWindow + " href='" + storeData.url + "'>" + storeData.url + "</a></span>";

    Can you let me know if this fixes it?

  8. tatkins
    Member
    Posted 11 months ago #

    That somewhat fixed it. The URL is an active link now which is good.
    It would be good if the Store name could be a link in that list, and/or we could have the link say "more info" instead of listing the actual url.

    Thanks.

  9. Tijmen Smit
    Member
    Plugin Author

    Posted 11 months ago #

    If you go to the settings page -> design, then there is an option 'If a store url exists, make the store name clickable?' That should make the store names clickable.

    You can make it say 'more info' by changing the code into this.

    moreInfoContent += "<span><strong>Url</strong>: <a " + newWindow + " href='" + storeData.url + "'>More info</a></span>";
  10. tatkins
    Member
    Posted 11 months ago #

    That is checked off. Works for the box overlay on the map, but not in the listings below the map.

    I did already change the code to change the display of the url. I noticed that just after I posted.

  11. Tijmen Smit
    Member
    Plugin Author

    Posted 11 months ago #

    The same problem with the quotes around the href happens on line 1077. Replace that line with this code.

    store = "<a " + storeUrlTarget + " href='" + response.url + "'>" + store + "</a>";

    This fix will be in an official update next week.

  12. tatkins
    Member
    Posted 11 months ago #

    Excellent.
    Thank you. That fixed it.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Store Locator
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.