Home › Forums › All Other Themes › Plug-in issue, background videos
- This topic has 6 replies, 2 voices, and was last updated 1 day, 12 hours ago by
Sonl Sinha.
-
AuthorPosts
-
April 9, 2025 at 4:09 pm #229132
Hi
an issue has surfaced using SKT Flooring theme on https://ozhrb.nimsite.uk. I’ve added a plug-in called Fullscreen Background premium that is working great when adding individual page background images but is not working with MP4 video, their tech support is saying…
“There is particular default wordrpess hook missing in your theme which is place where video code goes to display video. I can add those codes in your theme’s child theme. Can you add child theme of your theme as adding that hook directly in your theme will not be good because whenever the theme will be updated, code will be overridden and video background will stop working. Please add child theme and let me know when done. I will add the necessary hook in the header of your child theme. If you are having trouble adding child theme let me know.”
I thought it best to discuss with yuo guys first in case you are not aware of the issue?
April 9, 2025 at 4:33 pm #229133“FYI, ‘wp_body_open’ is the hook which is missing in theme , it is standard and default hook in wordpress.”
April 9, 2025 at 6:01 pm #229135Hi,
Kindly add given code in “header.php” file below this “<body <?php body_class();?>>”
Add this code : <?php do_action( ‘wp_body_open’ ); ?>
Regards,
ChrisApril 9, 2025 at 6:56 pm #229136thanks Chris
see error message when applied: https://ozhrb.nimsite.uk/wp-content/uploads/2025/04/Screenshot-2025-04-09-142449.jpg
April 10, 2025 at 10:49 am #229139Hi,
We forgot to provide the code of function.php file, Kindly add this code in function.php file.
// WordPress wp_body_open backward compatibility if ( ! function_exists( 'wp_body_open' ) ) { function wp_body_open() { do_action( 'wp_body_open' ); } }
Kindly add given code in “header.php” file below this
“<body <?php body_class();?>>”
Add this code :
<?php do_action( ‘wp_body_open’ ); ?>
Regards,
ChrisApril 11, 2025 at 1:33 pm #229157Thanks, same error with the additional code added
https://ozhrb.nimsite.uk/wp-content/uploads/2025/04/Screenshot-2025-04-11-085956.jpg
I’ve sent my WP log-in details to your support email using the ref #229139
April 14, 2025 at 2:38 pm #229185Hi,
Issue have been resolved. Kindly check and confirm.
Regards,
Chris -
AuthorPosts
- You must be logged in to reply to this topic.