Hello
I am looking for the best practice to add Youtube video on the login page, any help please.
I get the code from Youtube but do not know where and how to add
the code from youtube
<iframe width="560" height="315" src="https://www.youtube.com/embed/ItF8aCJe6jw" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
Thank you
Youtube video
Re: Youtube video
Hi,
you can try to edit the hooks/header-extras.php and add
you can try to edit the hooks/header-extras.php and add
Code: Select all
<?php
$mi = getMemberInfo(); $url=basename($_SERVER['PHP_SELF'],".php");
if ($mi['group'] == 'anonymous' && $url == "index") {
?>
<script>
$j(function(){
$j('#login_splash').append('<iframe width="560" height="315" src="https://www.youtube.com/embed/ItF8aCJe6jw" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>');
})
</script>
<?php
}
?>
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.
Re: Youtube video
Hi
Thank you for your support.
regards,
Thank you for your support.
regards,