• Resolved kpenn

    (@kpenn)


    Hello,

    I’m trying to set up a greeting based on the time of the day. Only the first message (Good morning) is showing, and its doing so all day (morning, afternoon and evening).

    Each of the greetings show if using show=”00:00” no matter the time of day or the hide setting.

    Here is the shortcode that I’m using.

    [timed-content-client show="00:00" hide="11:59"]Good morning, [/timed-content-client][timed-content-client show="12:00" hide="17:59"]Good afternoon, [/timed-content-client][timed-content-client show="18:00" hide="23:59"]Good evening, [/timed-content-client]

    Thanks for the plugin and any help with this matter.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Arno Welzel

    (@awelzel)

    Please read plugin the description.

    Client-side short codes only allow to show or hide content after a given time period, not at a specific time. The given parameters are not time of the day but time periods. This means [timed-content-client show="00:00" hide="11:59"] means: show after 0 seconds and hide after 11 minutes and 59 seconds.

    If you want to show content only at a specific time, you need a server-side rule, not a client-side one. Also note, that server-side rules always need the timezone too to work properly and the time is always the server time. So “good morning” is only correct for those visitors which live in the same timezone.

    Thread Starter kpenn

    (@kpenn)

    Understood – thanks for your reply.

    • This reply was modified 7 years, 9 months ago by kpenn. Reason: Replying as resolved
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Greeting based on time of day (Morning, Afternoon, Evening)’ is closed to new replies.