Support » Plugin: Timed Content » time out from page opening

  • Resolved andyi

    (@andyi)


    Hi there
    Can I assume that this plugin, which looks like a great facility by the way, can limit the time a visitor lands on a page – i.e. from a redirect to another page to see some contact for say 30mins?

    Thanks in advance

Viewing 4 replies - 1 through 4 (of 4 total)
  • should say ‘… see some content for say 30mins?’

    Plugin Author Arno Welzel

    (@awelzel)

    A redirect is not possible.

    However you can create a client side action which hides content after 30 minutes and a 500 millisecond (half a secnd) fade out:

    [timed-content-client hide="30:00:500"]
    Your content to be hidden after 30 minutes.
    [/timed-content-client]

    However – this does not mean, that the content will not be there any longer after 30 minutes, it will just not be visible, since the hiding will done by applying CSS attributes with JavaScript. If visitors disable JavaScript, they will still see the content.

    Thanks Arno, appreciated.
    Will give this a try.
    Appreciate the JavaScript may be disabled.

    Just to be clear about the re-direct, the scenario would be similar to below:
    Visitor click to go to a page (from a ‘normal’ page)
    Arrives on the page that would time-out in 30mins
    Then, they would simply leave that page

    Andy

    Plugin Author Arno Welzel

    (@awelzel)

    As I said: redirecting to other pages is not possible with Timed Content.

    You may achieve this with a simple script using the “Code Embed” plugin (https://wordpress.org/plugins/simple-embed-code/):

    <script>
    window.setTimeout(function()
    {
      document.location.href='http://server.example/newlocation';
    }, 30000);
    </script>

    Just replace http://server.example/newlocation with the URL you want to redirect to.

    Edit: I just realized, that “Embed Code” seems not to be supported any longer. Maybe this works better: https://wordpress.org/plugins/custom-css-js/

    • This reply was modified 3 months, 1 week ago by  Arno Welzel.
Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.