• Resolved fperkman

    (@fperkman)


    Hi guys! I have to VC rows, and I want to hide the first and show the second at the same time. And when the time is over, it shows again the first and hide the second row.

    The first row is a countdown to a soccer match, and the second is a video streaming player.

    Actually I have this code:

    [time-restrict on=”2017-07-07 11:45:00″ off=”2017-07-07 11:44:00″]
    [vc_row][vc_column]//Countdown//[/vc_column][/vc_row]
    [/time-restrict]

    [time-restrict on=”2017-07-07 11:44:00″ off=”2017-07-07 11:45:00″]
    [vc_row][vc_column]//Video stream player//[/vc_column][/vc_row]
    [/time-restrict]

    (it’s only one minute difference because I’m testing)

    The thing is that the second row show correctly at 11:44, but the first is always hidden. Even after 11:45. I thing the problem is that the off time is previous than the on time.

    How can I “hide X content from-to time”?

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author Dave Clements

    (@thewanderingbrit)

    Hey there,

    I see what you were trying to do, but the shortcode doesn’t quite work that way. You need to create a timer before the match:

    [time-restrict on="2017-01-01 00:00:00" off="2017-07-07 11:45:00"]Countdown to match[/time-restrict]

    Then one for during the match:

    [time-restrict on="2017-07-07 11:45:00" off="2017-07-07 13:45:00"]Video player[/time-restrict]

    And then another one if you need something after the match:

    [time-restrict on="2017-07-07 13:45:00" off="2117-07-07 13:45:00"]Thanks for watching.[/time-restrict]

Viewing 1 replies (of 1 total)
  • The topic ‘Hide and show two rows at the same time’ is closed to new replies.