Support » Plugin: Show/Hide Content at Set Time » The content its hide but the white space no :(

  • Resolved nicotolsta

    (@nicotolsta)


    I want to use this function for mix content each half hour.
    The hidding content works, but the white spaces remains 🙁

    I cannot hide the div?

    [time-restrict-repeat type=”daily” ontime=”00:00:01″ offtime=”00:30:00″]
    TEXT A
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”00:30:01″ offtime=”01:00:00″]
    TEXT B
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”01:00:01″ offtime=”01:30:00″]
    TEXT A
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”01:30:01″ offtime=”02:00:00″]
    TEXT B
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”02:00:01″ offtime=”02:30:00″]
    TEXT A
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”02:30:01″ offtime=”03:00:00″]
    TEXT B
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”03:00:01″ offtime=”03:30:00″]
    TEXT A
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”03:30:01″ offtime=”04:00:00″]
    TEXT B
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”04:00:01″ offtime=”04:30:00″]
    TEXT A
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”04:30:01″ offtime=”05:00:00″]
    TEXT B
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”05:00:01″ offtime=”05:30:00″]
    TEXT A
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”05:30:01″ offtime=”06:00:00″]
    TEXT B
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”06:00:01″ offtime=”06:30:00″]
    TEXT A
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”06:30:01″ offtime=”07:00:00″]
    TEXT B
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”07:00:01″ offtime=”07:30:00″]
    TEXT A
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”07:30:01″ offtime=”08:00:00″]
    TEXT B
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”08:00:01″ offtime=”08:30:00″]
    TEXT A
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”08:30:01″ offtime=”09:00:00″]
    TEXT B
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”09:00:01″ offtime=”09:30:00″]
    TEXT A
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”09:30:01″ offtime=”10:00:00″]
    TEXT B
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”10:00:01″ offtime=”10:30:00″]
    TEXT A
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”10:30:01″ offtime=”11:00:00″]
    TEXT B
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”11:00:01″ offtime=”11:30:00″]
    TEXT A
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”11:30:01″ offtime=”12:00:00″]
    TEXT B
    [/time-restrict-repeat]
    [time-restrict-repeat type=”daily” ontime=”12:00:01″ offtime=”12:30:00″]
    TEXT A
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”12:30:01″ offtime=”13:00:00″]
    TEXT B
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”13:00:01″ offtime=”13:30:00″]
    TEXT A
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”13:30:01″ offtime=”14:00:00″]
    TEXT B
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”14:00:01″ offtime=”14:30:00″]
    TEXT A
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”14:30:01″ offtime=”15:00:00″]
    TEXT B
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”15:00:01″ offtime=”15:30:00″]
    TEXT A
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”15:30:01″ offtime=”16:00:00″]
    TEXT B
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”16:00:01″ offtime=”16:30:00″]
    TEXT A
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”16:30:01″ offtime=”17:00:00″]
    TEXT B
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”17:00:01″ offtime=”17:30:00″]
    TEXT A
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”17:30:01″ offtime=”18:00:00″]
    TEXT B
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”18:00:01″ offtime=”18:30:00″]
    TEXT A

    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”18:30:01″ offtime=”19:00:00″]
    TEXT B
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”19:00:01″ offtime=”19:30:00″]
    TEXT A
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”19:30:01″ offtime=”20:00:00″]
    TEXT B
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”20:00:01″ offtime=”20:30:00″]
    TEXT A
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”20:30:01″ offtime=”21:00:00″]
    TEXT B
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”21:00:01″ offtime=”21:30:00″]
    TEXT A
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”21:30:01″ offtime=”22:00:00″]
    TEXT B
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”22:00:01″ offtime=”22:30:00″]
    TEXT A
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”22:30:01″ offtime=”23:00:00″]
    TEXT B
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”23:00:01″ offtime=”23:30:00″]
    TEXT A
    [/time-restrict-repeat]

    [time-restrict-repeat type=”daily” ontime=”23:30:01″ offtime=”00:00:00″]
    TEXT B
    [/time-restrict-repeat]

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

    (@thewanderingbrit)

    Hi there,

    The reason that you’re ending up with the white space is just because you’re entering each shortcode in a new paragraph, so when the content is hidden you end up with an empty paragraph. Instead, just remove the line breaks between successive shortcodes, e.g.:

    [time-restrict-repeat type=”daily” ontime=”00:00:01″ offtime=”00:30:00″]TEXT A[/time-restrict-repeat][time-restrict-repeat type=”daily” ontime=”00:30:01″ offtime=”01:00:00″]TEXT B[/time-restrict-repeat][time-restrict-repeat type=”daily” ontime=”01:00:01″ offtime=”01:30:00″]TEXT A[/time-restrict-repeat][time-restrict-repeat type=”daily” ontime=”01:30:01″ offtime=”02:00:00″]TEXT B[/time-restrict-repeat]

    And so on. Let me know if that doesn’t do the job 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘The content its hide but the white space no :(’ is closed to new replies.