Support » Plugin: WP Store Locator » Customizing The Store List

  • Resolved j_saal

    (@j_saal)


    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.

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

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

    (@tijmensmit)

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

    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.

    Plugin Author Tijmen Smit

    (@tijmensmit)

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

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Customizing The Store List’ is closed to new replies.