A jquery script/ wp_query loop that adds a class on the body tag and also show a specific wp page depending on day and hour
$10-30 USD
Completed
Posted almost 10 years ago
$10-30 USD
Paid on delivery
A jquery script/ wp query loop that adds a class on the body tag and also show a specific wp page depending on day and hour (visitors time and date) on a weekly basis:
I need a clean and simple code.
See schedule here:
Monday - Thursday
Weekday Night 00.01 – 04.59 -> show page ID XX = and add class .weekdaynight on body tag
Weekday Breakfast 05.00 - 09.29 -> show page ID XX = and add class .weekdaybreakfast on body tag
Weekday Brunch 09.30- 15.59 -> show page ID XX = and add class .weekdaybrunch on body tag
Weekday Lunch 09.31 - 10.30 -> show page ID XX = and add class .weekdaylunch on body tag
Weekday Afternoon 14.01 - 16.00 -> show page ID XX = and add class .weekdayaftenoon on body tag
Weekday Day 16.00 - 19.00 -> show page ID XX = and add class .weekdayday on body tag
Weekday Evening 19.01 - 00.00 -> show page ID XX = and add class .weekdayevening on body tag
Friday
Friday Night 00.01 – 05.59 -> show page ID XX = and add class .fridaynight on body tag
Friday Breakfast 06.00 - 10.29 -> show page ID XX = and add class .fridaybreakfast on body tag
Friday Brunch 10.30 - 14.00 -> show page ID XX = and add class .fridaybrunch on body tag
Friday Lunch 14.01 - 16.00 -> show page ID XX = and add class .fridaylunch on body tag
Friday Day 16.00 - 20.00 -> show page ID XX = and add class .fridayday on body tag
Friday Evening 16:01 - 00.00 -> show page ID XX = and add class .fridayevening on body tag
Saturday - Sunday
Weekend Night 00.01 – 04.59 -> show page ID XX = and add class .weekendnight on body tag
Weekend Breakfast 05.00 - 09.29 -> show page ID XX = and add class .weekendbreakfast on body tag
Weekend Brunch 09.30- 15.59 -> show page ID XX = and add class .weekendbrunch on body tag
Weekend Day 16.00 - 20.00 -> show page ID XX = and add class . weekendday on body tag
Weekend Evening 20.01 - 00.00 -> show page ID XX = and add class .weekendevening on body tag
Hi,
I have 3+ years experience in wordpress. I have created lots of wordpress theme and plugin.
I can complete your requirement with my confidence. So please come on chat with me. I can start work now .
Thanks,