• Resolved itproxy

    (@itproxy)


    I’m trying to do something that I had assumed would be fairly simple (I’m a simple soul), but hours spent searching for suitable plugins (and other methods, including embedding php code inline) has yielded nothing.
    I’d like a page to load, show an image for (say) 10 seconds, which disappears, then displays text (this could be via a redirect to another page).
    There’s lots of ‘countdown timers’ available, but they all seem to be based on specifying dates and times, rather than just time intervals.
    I’m using v3.0.
    I know I could make the image a link which redirects to another page, but I’d like it to happen automatically.
    Can anyone suggest a suitable plugin, or other method?
    With thanks.
    PS I’m a bit anti-javascript; I’m looking for server-side solutions!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter itproxy

    (@itproxy)

    I’ve solved the problem. Just adding a php-powered ‘meta refresh tag’ to the ‘header.php’ file for my theme did the trick (10 second delay):

    <meta http-equiv=”refresh” content=”<?php if ( is_home() || is_front_page() ) {echo ’10;url=[relative or absolute url]/?page_id=[nnn]’;} ?>”

    Substitute text in [ ] for relevant values. Only the home/front page redirects in this scenario.

    Thread Starter itproxy

    (@itproxy)

    Actually, the following code is better:

    <?php if ( is_home() || is_front_page() ) {echo ‘<meta http-equiv=”refresh” content=”10;url=[your_url]/?page_id=[nnn]” />’;} ?>

    Doesn’t put a half-formed ‘meta refresh tag’ on unaffected pages.

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

The topic ‘Load different content after delay’ is closed to new replies.