Saltar navegación

[Resuelto] Timetable (schedule, opening hours)

This support ticket is created hace 6 años, 6 meses. 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.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Etiquetado: 

Este tema contiene 34 respuestas, tiene 4 mensajes.

Última actualización por Ljuba hace 6 años, 3 meses.

Asistido por: Nigel.

Autor
Mensajes
#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

Idiomas: Inglés (English ) Español (Español )

Zona horaria: 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

Idiomas: Inglés (English ) Español (Español )

Zona horaria: 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!