-
AuthorPosts
-
April 26, 2018 at 11:29 am #947200
Hello,
i have to swap on our site the Youtube links against DSGVO compliant links. Youtube also offers a no cookie version for embedding.
But unfortunately, the embedded links look very small in size. Therefore, I would like to continue to use the Enfold own function of Youtube Links.But how can I change the link to work with the Enfold plugin?
So far, I have used the following in the plugin:
https: //www.youtube.com/watch v = LINK ……?The new link is:
https: //www.youtube-nocookie.com/embed/LINK ……But then nothing is displayed.
- This topic was modified 6 years, 8 months ago by envato1901.
April 27, 2018 at 10:30 am #947792Hey envato1901,
Could you please give us a link to your website, we need more context to be able to help you.
Best regards,
VictoriaApril 27, 2018 at 10:36 am #947798This reply has been marked as private.April 27, 2018 at 11:21 am #947842Well – i must say that if the options on youtube videos are not selectable and work with video alb – i use my shortcode version instead. ( it is realy nice now on ALB Video Element that it has now the right proportion – so i use the surrounding container of Enfold setting.
this to functions.php of your child-theme –
function youtube ($id){ return '<div class="avia-video avia-video-16-9" itemprop="video" itemtype="https://schema.org/VideoObject"> <div class="avia-iframe-wrap"> <iframe title="YouTube video player" width="720" height="405" src="https://www.youtube-nocookie.com/embed/'.$id[0].'?enablejsapi=1&ecver=2&showinfo=0&loop=1&rel=0" frameborder="0" allowfullscreen> </iframe> </div> </div>'; } add_shortcode('youtube', 'youtube');
and you can insert every youtube video as shortcode to where ever you like.
[youtube G0k3kHtyoqc]
the no cookie is integrated – and no relatives etc pp
See here left side shortcode in text-block – right side Enfold Video ALB
https://webers-testseite.de/cynthia/youtube/April 27, 2018 at 11:41 am #947870Hello Guenni,
thanks that works just as well with the code as with the enfold plugin. That’s what I have been looking for.
Now I can integrate the no cookie version and the DSGVO video story is done ;-)
April 29, 2018 at 6:16 am #948535Hi envato1901,
Glad Guenni007 could help :)
If you need further assistance please let us know.
Best regards,
VictoriaJune 5, 2018 at 5:16 pm #967322Thank you Guenni, this works like hell :)
-
AuthorPosts
- You must be logged in to reply to this topic.