Archived topic
stop background video after some number of loops
1 reply · Started by Sergio on May 31, 2017
Hi there,
I have set a video background for one page header and, in fact, the continuous loop is a bit annoying. Only one time isn't enought, though.
Is it possible to stop it after,lets say, two or three loops? How? Please have in mind that a newbie
Thanks
Hi there,
Unfortunately it’s only possible to disable the video loop outright:
https://generatepress.com/forums/topic/home-background-video-settings/#post-289001
You can use this code to stop the loop:
https://generatepress.com/forums/topic/generate_page_header_video_loop-filter/page/2/#post-297665
Adding PHP: https://docs.generatepress.com/article/adding-php/#code-snippets