Skip Navigation

[Gelöst] Timetable (schedule, opening hours)

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 34 Antworten, has 4 Stimmen.

Last updated by Ljuba vor 3 Jahre, 4 Monate.

Assigned support staff: Nigel.

Author
Artikel
#1110553

Hi Nigel,

Nope, unfortunately nothing new. It all the time display 'Abierto'.

P.S. - You have allowed access to main site with same credentials as you used to use (to see did I done something wrong - I doubt).

#1110658

Nigel
Supporter

Languages: Englisch (English ) Spanisch (Español )

Timezone: Europe/London (GMT+00:00)

You said before that it always displays "Cerrado*", so if it is showing Abierto, that sounds like progress.

#1112113

Yeah, I didn't noticed that, but you are right. However, after today update to 3.1.1 (or you did something) now, IT'S WORKING!!!!!!

Thanks a lot.

P.S. As Abierto/Cerrado is within your function, how to set color switch for that (green/red)? I guess that I can add the class to - return "Cerrado"; (something like --> return "Cerrado".addClass("bg-danger");), and (bg-success) for Abierto, but I'm not sure how to do it.

#1112215

Nigel
Supporter

Languages: Englisch (English ) Spanisch (Español )

Timezone: Europe/London (GMT+00:00)

Shortcodes return strings, but the string can include markup.

So you would modify it to return something like:

return "<span class='bg-success'>Abierto!</span>";
#1112366

Thank you!