• Resolved Support Team

    (@supportfasteam)


    Great plugin! I have a situation where I would like to “replace” some existing content on a page only within a certain timeframe and have the original content be on the page the rest of the time. The below example is intended to replace existing content on 1 day only (30th November). Is this the correct method?

    [timed-content-server hide="2021-11-30 00:00 America/Phoenix"]Regular Content: Show Before Timed Content[/timed-content-server]

    [timed-content-server show="2021-11-30 00:01 America/Phoenix" hide="2021-11-30 23:59 America/Phoenix"]Timed Content: Only Show During Specific Timeframe[/timed-content-server]

    [timed-content-server show="2021-12-01 00:00 America/Phoenix"]Regular Content: Show After Timed Content[/timed-content-server]

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

    (@awelzel)

    Yes this should work. However keep in mind that your rules leave one minute gap between 30th November and 1st December. Maybe you want to reduce this to one second by adding seconds as well:

    [timed-content-server hide="2021-11-30 00:00:00 America/Phoenix"]Regular Content: Show Before Timed Content[/timed-content-server]
    
    [timed-content-server show="2021-11-30 00:00:01 America/Phoenix" hide="2021-11-30 23:59:59 America/Phoenix"]Timed Content: Only Show During Specific Timeframe[/timed-content-server]
    
    [timed-content-server show="2021-12-01 00:00:00 America/Phoenix"]Regular Content: Show After Timed Content[/timed-content-server]
    • This reply was modified 4 years, 6 months ago by Arno Welzel.
    Thread Starter Support Team

    (@supportfasteam)

    Many thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Using Show/Hide to Replace Page Content’ is closed to new replies.