Support » Plugin: WP Store Locator » Opening Hours after update no longer displayed

Viewing 15 replies - 1 through 15 (of 18 total)
  • Has anyone else this problem?

    Plugin Author Tijmen Smit

    (@tijmensmit)

    Add this code to the functions.php in your theme folder, and it should show up again.

    The reason it doesn’t show by default anymore is because the new opening hours format in 2.0 is set through dropdowns ( users who upgraded have the option to use both the textarea or dropdowns, new users only get the dropdowns ), and show them in a table instead of a ( possible ) single mon – fri 9-5 line. And since they are in a table they take up much more height in the info window.

    When I added the phone, fax and email fields, together with the opening hours ( set through the dropdowns ) to the info window it was to high to fit on the map, which is a problem. So I decided to leave them out by default, but I forgot to mention this in the release notes, together with a link to code that could restore it for 1.x users who set the opening hours in the old format.

    Entering the opening hours through the dropdowns makes the format more predictable, and allows me to in a future release add schema.org support ( this helps Google to understand the location is open on a Monday from 9-5 ) to the plugin.

    Thanks Tijmen for your answer. I will try it.

    The Dropdown is a good idea. But the weekdays are in English and can not be translated. And unfortunately Holidays missed. Actually, it would take 8 days. Seven weeks days and a holiday. Or a way to create their own days.

    And another suggestion. It would be nice if would appear if the shop has just opened or closed. As in Facebook for example. 😉

    EDIT: Thank you Tijmen. It works 🙂

    Plugin Author Tijmen Smit

    (@tijmensmit)

    The fix works, and you are able to translate the days?

    I have to think on a way to allow users to add holidays. I have seen it before as well, that it would say if the store is current open or closed. Just haven’t looked into how to make it work.

    It would be a nice feature to have, but I first have to finish the add-ons, and some other things on the feature list before I will look into making the opening hours saying if they are open or closed.

    The update works. But the days can not be translated. That’s why I do not use the dropdown. I do not know where you could translate. Or can I work with the po / mo file? Then I would translate it there.

    http://img5.fotos-hochladen.net/uploads/dropdownmlts1h098u.jpg

    I’ve just tested it. I can make the translation in the po / mo file. I just created a new language and uploaded in languages folder. It works 🙂

    I tested it in a shop. I think it’s really good. Just maybe two changes. The Weekdays should be left aligned. Not centered. And between distance and Get directions should still be a blank line. Then it would be perfect. 😉

    Plugin Author Tijmen Smit

    (@tijmensmit)

    The Weekdays should be left aligned. Not centered. And between distance and Get directions should still be a blank line.

    These are things you can change by adding extra css to the styles.css in your theme folder.

    I assume you are talking about the weekdays on the store pages? If they are centered then this is likely something in your theme that makes that happen. But I will add some extra css lines to the styles.css from the plugin to make sure they are left aligned instead of centered.

    Will this code be overwritten upon plugin update?

    Plugin Author Tijmen Smit

    (@tijmensmit)

    Any code you add to the functions.php inside your theme folder will stay there if you update the plugin. But if you update your theme, then you have to place the code back again.

    Hello,

    I am having the same issue with opening hours but the link to the code you posted is dead. Could you please post it again so I can show hours with my plugin? Thank you!

    Plugin Author Tijmen Smit

    (@tijmensmit)

    I had to change the name of my Github account, so the correct url with the code that makes the opening hours show is now here.

    Hello Tijmen Smit,

    How would I show the Opening hours in search results without the need of a More Info button.

    Thank you.

    • This reply was modified 2 years, 5 months ago by  ruksharkhan.

    I have the same problem but it doesn’t work. I add the code but nothing 🙁

    Plugin Author Tijmen Smit

    (@tijmensmit)

    @engamemilano can you try to flush the transient cache on the WPSL settings page -> Tools section.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Opening Hours after update no longer displayed’ is closed to new replies.