Support » Plugin: Five Star Business Profile and Schema » Multiple opening times on same day

  • Resolved lucspe

    (@lucspe)


    Hi,

    Is there a way to add opening times in the format 9/12 and 14/18.30 for example?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @lucspe,

    Yes, multiple scheduling rules can be combined to indicate complex opening hours. So you can create one scheduling rule for 9:00-12:00 and then create a second scheduling rule 14:00-18:30.

    On days where both scheduling rules apply, the plugin will compile them to show both sets of available booking hours on that day.

    Thread Starter lucspe

    (@lucspe)

    Hi thanks for the quick reply.

    Indeed it works as you described.

    However, I have a followup question.

    Given that the opening time is the same Mon-Fri, is there a way to avoid having a super-long list repeating the same information and shrink it up to simply “Mon-Fri” and then the time?
    Then next line “Sat-Sun” closed?

    I tried the show_opening_hours_brief=1 attribute however this way it shows as:

    Mo,Tu,We,Th,Fr 09:00 – 13:00; Mo,Tu,We,Th,Fr 14:30 – 18:30

    which is not very friendly to read.

    • This reply was modified 5 years, 6 months ago by lucspe.

    Hi @lucspe,

    Yes, the brief opening hours were going to be my recommendation to you. But I admit they aren’t as nice as I’d like them to be. Given the range of potential combinations that can be created with the opening hours, it was difficult to come up with a format that was bulletproof in all combinations.

    I remember your user profile but I can’t remember if you’re comfortable writing a little bit of code or not. If so, you can create a custom solution for this using the plugin’s templates. There’s a template specifically for the opening hours:

    https://github.com/NateWr/business-profile/blob/master/templates/opening-hours.php

    You can tailor this to always show Mon-Fri on one line and Sat-Sun on another.

    You’ll find more details about the templates offered and how to override them in your theme in the developer documentation here:

    http://doc.themeofthecrop.com/plugins/business-profile/developer/templates

    Thread Starter lucspe

    (@lucspe)

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Multiple opening times on same day’ is closed to new replies.