sybrew/the-seo-framework

[Local] Add validFrom/validThrough fields to openingHours

Closed this issue · 1 comments

We can add validFrom/validThrough easily to each openingHoursSpecification field.

When nothing like this is set, it's implied year-round unless superseded by a validFrom/validThrough expression.

https://developers.google.com/search/docs/appearance/structured-data/local-business

With this, we may want to allow unlimited openingHoursSpecification fields provided by the user.

This is how it will look.

I couldn't add an indicator to the collapse menu title, unfortunately -- it was already crowded with the day names, and this complexity would've taken days to refactor to implement.

The date and time fields are browser language specific. Mine is set to en_US, which uses AM/PM and the incorrect order of days and months. If you are in Europe, yours will probably be correct. The output is always the same for Google, regardless of how it looks.

In the final version, "Make these hours temporarily scheduled?" will become "Schedule these opening hours?". Earlier/later will become before/after.

image