• Resolved stroozey

    (@stroozey)


    Hi,
    is there a way to display the opening hours from a single weekday?
    I’ll give you an example so you get what I mean:
    The plugin is setup and everything works fine (really great plugin btw). In the plugin, opening hours are set for each weekday. Can I get it to show only the opening hours from monday for instance(like a get-Method which returns like: “09:00-17:00”)?
    Thank you for help and most of all thank you for this amazing customizable plugin!

    stroozey

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

    (@designextreme)

    @stroozey Yes, this is possible. Just set the limit to 1 day.

    Please let me know how this goes?

    And thanks for the great feedback!

    • This reply was modified 3 years, 12 months ago by Design Extreme. Reason: Last line
    Plugin Author Design Extreme

    (@designextreme)

    @stroozey For just Monday as text:

    [open text week_start=1 count=1]

    This will show the full record for Monday.

    If you’re closed for all the other days, you can choose to hide the closed days with the same effect.

    Thread Starter stroozey

    (@stroozey)

    @designextreme Thank you for your fast reply!
    But no way to just get the time itself w/o the day name?
    A HTML code for what i want would look like that:

    <h1 class=this_is_the_day>Monday</h1>
    <p class=this_is_the_time>09:00-12:00<br>13:00-17:00</p>

    If the day-name can’t be removed, can I somehow add a <br> as a suffix/seperator to modify it in the style sheet (same goes for the two time spans)?
    So it should look like that:
    Monday
    09:00-12:00
    13:00-17:00

    Plugin Author Design Extreme

    (@designextreme)

    @stroozey Did you want the current day or the following day? If so, please check out the replacement text.

    This will only work for the current day or the next day rather than “Monday” or “Tuesday”, etc. If so, there is no way (at the moment) to isolate particular days and just show the opening hours only, without the day name (in some form).

    However, you can hide the day name by using the following CSS:

    .opening-hours .day-name {
    	display: none;
    }
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Opening hours from each day a week’ is closed to new replies.