• Resolved adrian.alex

    (@adrianalex)


    Hi, guys,
    I encountered a situation with my coding (not an expert, still leraning a lot of stuff).
    As less as possible I’m trying to avoid using plug-ins for small functions. So I needed an autorefresh function. I searched the forum and I found a small command to put in the header (<meta http-equiv=”refresh” content=”600″>). Everything works well except on thing that became annoying: in my home page I embedded some YouTube videos. But the users can’t see the entire videos because after ten minutes autorefresh kicks and strat all over the videos.
    My question: is there anything that I can do so everything refreshes except the YouTube videos? I know it’s an impossible situation but doesn’t hurt to ask.Thank you very much!

    • This topic was modified 5 years, 10 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    Yes, but not by using a meta tag refresh. Instead of refreshing all but the video, you’d want to only refresh the elements that would actually change. This is typically done with Ajax techniques. Unfortunately it’s a lot more complicated than adding a meta tag. If you are still interested, an overview of Ajax in WP can be found at https://developer.wordpress.org/plugins/javascript/ajax/

    Thread Starter adrian.alex

    (@adrianalex)

    Thank you so much for the answer. At least I have a starting point for something.

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

The topic ‘Autorefresh function in header and YouTube’ is closed to new replies.