• I need to redirect a page after 30 seconds and would like to do that without another plugin. Back in HTML days I would add <meta http-equiv=”Refresh” content=” to the page’s header but I’m not finding a way to add a meta tag to one page on the site using Divi. There is also Toolset on the site as well.

    Suggestions? Divi doesn’t seem to have a way to add code to one page’s header. Is there a way to use WordPress custom fields? This seems more complicated than it should be.

    • This topic was modified 3 years, 5 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @scdesmond,

    Try to add your meta tags in the “header.php” file located (in most cases) in the root of your theme directory. You can achieve this on the Appearence->Theme Editor menu (you must select the file I sad above).

    Thread Starter WP Monkey

    (@scdesmond)

    But the meta tag is a redirect after 30 seconds. I only want to do that on one page, not the entire site.

    Oh, now I got it.

    Ok, first of all you need to find out the page id: on the Pages listing (on dashboard), when you hover the mouse on the link (without clicking), on the bottom left of your browser shows the target. The page id shows up there.

    Lets suppose yout page id is 99. You must go to your page.php file (Appearence -> Theme Editor -> find the page.php file of your theme) and insert this code:

    <?php
    if (is_page(99)){
    
    ?>
    // your html code here
    <?php
    }
    ?>

    The code about checks if the page loaded is what you want (99) and executes the code. I think there are a lot of solutions, but I think it is the simplest.

    Source: https://developer.www.ads-software.com/reference/functions/is_page/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to insert <meta http-equiv=”Refresh” content=” without a plugin’ is closed to new replies.