Support » Plugin: WP Store Locator » URL in Store Listing

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

    (@tijmensmit)

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

    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/

    Plugin Author Tijmen Smit

    (@tijmensmit)

    @tatkins Your site appears to be down?

    hmm, that url is working ok from here.

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

    Plugin Author Tijmen Smit

    (@tijmensmit)

    @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?

    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.

    Plugin Author Tijmen Smit

    (@tijmensmit)

    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>";

    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.

    Plugin Author Tijmen Smit

    (@tijmensmit)

    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.

    Excellent.
    Thank you. That fixed it.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘URL in Store Listing’ is closed to new replies.