WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. j_saal
    Member
    Posted 4 weeks 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.

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

  2. Tijmen Smit
    Member
    Plugin Author

    Posted 4 weeks ago #

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

  3. j_saal
    Member
    Posted 4 weeks 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
    Member
    Plugin Author

    Posted 3 weeks 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
    Member
    Posted 3 weeks 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.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.