@comfransyrs This is not part of the replacement text library. Your opening hours replacement text (%hours%) will just show “9h – 18h” and %today% will show today’s name (i.e. one day; not the range).
If your opening hours are the same for Monday, Tuesday and Wednesday (Thursday will be different), you can set to consolidate your days.
You can set the consolidation according to your preference in the main Setup tab in Settings. Or use something like this:
[opening_hours consolidation="separate"]
You can limit the range of days, display as text (without an enclosing HTML tag), etc. – this is all listed in the Parameters section of the Shortcodes tab.
Does this help clarify things for you?
Thanks, it is what I was looking for this [opening_hours consolidation=”separate”]. Just one thing, when all weekdays all have the same time, it wrights “Weekdays”, in English which is not the language of my site, I’d rather have mon-fri, Is there a way to get that ?
@comfransyrs That’s simple: either enter your own choice of word in the Separators & Text tab or delete the text for “Weekdays” and “Weekend” to set the day names as the fall-back.
I will make this clearer in the Settings of a subsequent plugin version.
Thanks, I will wait for the next version of the plugin. For now I still don’t get how to do all these operations…
@comfransyrs Please send me the text you’d like to show with your current opening hours and I can formulate the required shortcode with parameters or the settings you’ll need?
From what you’ve said so far, I’d recommend the following as a shortcode:
[open consolidation="separate" time_format="24_h_trim"]
Remove the text for “Weekdays”, “Weekend” and “Everyday” in the Text & Separators.
Thanks for all, but still I feel really stupid not to know where to remove Weekdays and change it to “lun – ven”, witch is “mon – fri” in french…
-
This reply was modified 5 years, 8 months ago by
comfransyrs.
-
This reply was modified 5 years, 8 months ago by
comfransyrs.
@comfransyrs It’s ok to ask! 🙂
In the tab: Text & Separators, please simply delete all the text for “Weekdays” so it is empty. This way, it will revert to using the days of the week in French. Similarly, for the word “Weekend”.
Thanks ! I was looking at the thing only programmatically, didn’t think there would be an interface for this cases.
@comfransyrs I’ll be adding a few new parameters in the upcoming version to mirror this functionality.