• Resolved Dean Loh

    (@dean-loh)


    First of all, thank you for the amazing plugin!

    At the moment this is the shortcode I’m using:
    [open lines update=true today=”Today” tomorrow=Tomorrow]

    This is the output:
    Today: By appointment
    Tomorrow: 12pm – 4pm
    Mon, 7 Sep: By appointment
    Tue, 8 Sep: By appointment
    Wed, 9 Sep: 12pm – 8pm
    Thu, 10 Sep: 12pm – 8pm
    Grand Opening Day: 3pm – 8pm

    Is it possible for me to include date after “Today”, “Tomorrow” and “Grand Opening Day” (ie special day)?

    Desired outcome:
    Today, 5 Sep: By appointment
    Tomorrow, 6 Sep: 12pm – 4pm
    Mon, 7 Sep: By appointment
    Tue, 8 Sep: By appointment
    Wed, 9 Sep: 12pm – 8pm
    Thu, 10 Sep: 12pm – 8pm
    Grand Opening Day, 11 Sep: 3pm – 8pm

    Thanks in advance!

Viewing 1 replies (of 1 total)
  • Plugin Author Noah Hearle

    (@designextreme)

    @dean-loh Thanks, glad it is useful! This will certainly be possible in the next release. I have added a label_format parameter for exactly this:

    [open lines update=true today="Today" tomorrow="Tomorrow" label_format="%label%, %day%"]

    %label% is the word or label, %day% is the day or date as it appears now, and you can put whatever you like between them. It only applies to days that have a label, so your Mon to Thu rows stay exactly as they are.

    Each part is will be wrapped in its own <span> element, so you can style the label and the date differently if you want to.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.