WP Store Locator
[resolved] Customizing The Store List (5 posts)

  1. j_saal
    Posted 2 years ago #

    This is a stupid question I'm sorry... I have added 'hours' to my store-list by adding the following to the wpsl-gmap.js file:

    + response.hours +

    I also want to have the hours label inline before the response. When I add the following to the javascript file:

    + wpslLabels.hours + response.hours +

    It pushes the response to the second line - clearly I do not know javascript well - does anyone know how to have these two elements sit inline rather than the label on one line and the response on the next?

    Thank you.


  2. Tijmen Smit
    Plugin Author

    Posted 2 years ago #

    What is the url where this happens? On which line did you add the response.hours to the js file?

  3. j_saal
    Posted 2 years ago #

    on line 1086 I added this:
    <span class='wpsl-hours'>" + wpslLabels.hours + response.hours + "</span>

    it seems to be putting a <p> tag around 'response.hours'

    can that be stopped? I'd be happy to send you the URL privately - I'm not sure I'm allowed to link to an unfinished site publicly.

    Thank you for your response.

  4. Tijmen Smit
    Plugin Author

    Posted 2 years ago #

    What is the full line you got on line 1086 now? You can email the link to info at tijmensmit.com.

  5. j_saal
    Posted 2 years ago #

    Actually I figured it out - thank you for offering to help! I must have had display inline on the wrong element. Apologies for wasting your time.

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


No tags yet.