[Resolved] Auto Refresh Page

Home Forums Support [Resolved] Auto Refresh Page

Home Forums Support Auto Refresh Page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1357666
    Alberto

    Hi everybody.
    My intent is to set a page reload on a site.
    I found that code:

    <?php
    
    if(is_page( PageID ))
    
    {
    
    echo ‘<META HTTP-EQUIV=”REFRESH” CONTENT=”23″>’ ;
    
    }
    
    ?>

    I tried to create a hook element, set HEADER in the hook, flagged PHP and set the page where to execute.
    But the page appears “empty”.
    where I’m wrong?

    Thanks in advance.

    #1357865
    David
    Staff
    Customer Support

    Hi there,

    Are you using a Hook Element:

    https://docs.generatepress.com/article/hooks-element-overview/

    If so you only need to add what you want to ouput in the Hook element eg.

    <META HTTP-EQUIV="REFRESH" CONTENT="23">

    Then select WP_Head from the Hook list.
    Then set your display rules for the post you want it on.

    #1357874
    Alberto

    Great!
    Once understood the way… it’s pretty simple.

    Many thanks David!

    Case closed!

    #1357890
    David
    Staff
    Customer Support

    Glad to be of help.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.