• Resolved comfransyrs

    (@comfransyrs)


    Hello, I quite don’t get the use of %hours%.
    I would like to build a logic where it would automatically displays monday – wenesday 9h – 18h.
    Is it possible ? If so, could I get an example of code ?
    Many thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Design Extreme

    (@designextreme)

    @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?

    Thread Starter comfransyrs

    (@comfransyrs)

    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 ?

    Plugin Author Design Extreme

    (@designextreme)

    @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.

    Thread Starter comfransyrs

    (@comfransyrs)

    Thanks, I will wait for the next version of the plugin. For now I still don’t get how to do all these operations…

    Plugin Author Design Extreme

    (@designextreme)

    @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.

    Thread Starter comfransyrs

    (@comfransyrs)

    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 4 years, 6 months ago by comfransyrs.
    • This reply was modified 4 years, 6 months ago by comfransyrs.
    Plugin Author Design Extreme

    (@designextreme)

    @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”.

    Thread Starter comfransyrs

    (@comfransyrs)

    Thanks ! I was looking at the thing only programmatically, didn’t think there would be an interface for this cases.

    Plugin Author Design Extreme

    (@designextreme)

    @comfransyrs I’ll be adding a few new parameters in the upcoming version to mirror this functionality.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Group same opening days’ is closed to new replies.