• Resolved navyspitfire

    (@navyspitfire)


    I want to display the phone number by default on the store listings without having to include a more info link; is there a way to do that?

Viewing 15 replies - 1 through 15 (of 19 total)
  • You can try using a filter to make this modification, check out the example in the documentation here: https://wpstorelocator.co/document/wpsl_listing_template/

    Thread Starter navyspitfire

    (@navyspitfire)

    Oh, great, I was trying to find that. If I simply added that to my functions file, will that automatically modify the default template or do I have to do something else? Thanks.

    Yes, just place it in your theme’s functions.php file. I did some other changes using this filter.

    Thread Starter navyspitfire

    (@navyspitfire)

    Okay so I did it and moved the phone code out of the if statement. Now while a store lists on the map (I see the marker and store name), the actual listing does not appear. I also tried clearing the trasient cache. Any idea?

    Edit: Also, I just noticed that since it doesn’t show the normal store list next to the map, when I click the store marker, my template shows on the marker. I am trying to get the store list to follow the template, not the marker information

    • This reply was modified 8 years, 1 month ago by navyspitfire. Reason: added more notes

    Can you provide a link to the site?

    Thread Starter navyspitfire

    (@navyspitfire)

    Not exactly sure why it’s not working, I’ve tried doing this on my test site and it’s also not displaying anything… But I’ve moved around other data and added new data, just not any of the data within the If statement.

    Perhaps the developer can take a closer look as to why it’s not working…

    I’ll start a new topic because it seems like there might be a bug. In the dashboard settings there is an option “Always show the contact details below the address in the search results?” but when I enable it, it also doesn’t seem to work…

    Plugin Author Tijmen Smit

    (@tijmensmit)

    @navyspitfire

    When I open your site I see several errors in the browser console that can influence the map.

    ReferenceError: stickyHeader is not defined[Learn More] -> https://www.ultraluxeskincare.com/wp-content/themes/mrtailor/js/scripts.js:1102:1

    You have included the Google Maps API multiple times on this page. This may cause unexpected errors.

    The last one you can likely fix in the tools section of the WPSL settings page by enabling the ‘Enable compatibility mode?’ option.

    Once you have done that, can you create a Gist with the code you added to the functions.php, and share the link here?

    @navyspitfire I was wrong about needing the custom code for displaying the phone number. Didn’t realize there was already an option to display all contact details in the WPSL settings. You’ll need to comment out or remove the custom code that was added to your functions.php file. Then, just check the box for “Always show the contact details below the address in the search results?” which is located under the “User Experience” section in the WPSL settings page.

    When I tested this on my site, I had some customizations in functions.php so that was causing it to no function properly… Hope that helps…

    Thread Starter navyspitfire

    (@navyspitfire)

    @tijmensmit here you go

    @gene158 I saw that, I am trying to edit the template so not have to show the “more info” tab and simply always have the phone number showing at all times.

    @navyspitfire you may need to uncheck the option above it.

    Thread Starter navyspitfire

    (@navyspitfire)

    Enable store locator debug? It’s unchecked.

    this is what is looks like on my test site: https://snag.gy/76EzSI.jpg

    No, you should uncheck: Show a “More info” link in the store listings?

    Thread Starter navyspitfire

    (@navyspitfire)

    That’s exactly what I want. “Show more info” link is also unchecked When I installed the plugin, I could only get the number under the “more info” tab. What did you do? Did you customize the template in functions file? Can you share your snippet if you did?

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Change template to include phone without more info link’ is closed to new replies.