Skip Navigation

[Resolved] Timetable (schedule, opening hours)

This support ticket is created 3 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

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.

Tagged: 

This topic contains 34 replies, has 4 voices.

Last updated by Ljuba 3 years, 7 months ago.

Assigned support staff: Nigel.

Author
Posts
#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: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01: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: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01: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!