Viewing 24 posts - 1 through 24 (of 24 total)
  • Author
    Posts
  • #911248

    Hi Kriesi

    I am trying to embed a video into a page on my site built with the Enfold theme.

    I need two things:

    1. Not to show the title
    2. For the video to autoplace when you get to the page.

    Please advise how to achieve these.

    I have tried this: https://youtu.be/3FDZYJo9Yfw?rel=0&autoplay=1?feature=oembed&showinfo=0

    But 1 & 2 don’t work.

    #911602

    Hey helban,

    Are you getting the same view?

    Best regards,
    Victoria

    #911608

    I have the right view with the layout builder Victoria.
    However, as I am sure you are aware Enfold can be very snaggy, it is definitley not a consistent theme.
    Please try it again.
    HB

    #911648

    Hi helban,

    I have tried.

    Best regards,
    Victoria

    #911661

    You say the errors are in those files Victoria. How do I rectify them?
    There are not files I have edited in any way. So they must have had an error at installation.
    Please advise.
    Regards
    Helen

    #911914

    Hi,

    You would need to either re-upload WordPress OR you can try use a software like WordFence to try replace the file through their automated system

    Best regards,
    Basilis

    #912365

    Hi Victoria
    I have now updated manually all the WordPress files in wp-admin & wp-includes.

    Please could you take a look at the original problem.

    Many thanks
    Helen

    #913059

    Hi,

    1.) Please edit the page then set the Layout > Title Bar Settings to “Hide Both”.

    2.) Add this script in the functions.php file.

    add_action('wp_footer', 'ava_iframe_parameters');
    function ava_iframe_parameters(){
    ?>
    <script>
    (function($){
    	$(window).load(function() {
    		// -------------------------------------------------------------------------------------------
    		// youtube parameter
    		// -------------------------------------------------------------------------------------------
    		function avia_iframe_parameters(container)
    		{
    			var iframe 	= jQuery('iframe[src*="youtube.com"]', container);
    
    				iframe.each(function()
    				{
    					var current = jQuery(this),
    						src = current.attr('src');
    
    					if(src)
    					{
    						if(src.indexOf('?') !== -1)
    						{
    							src += '&autoplay=1';
    						}
    
    						current.attr('src', src);
    					}
    				});
    		}
    
    		avia_iframe_parameters('body');
    	});
    })(jQuery);
    </script>
    <?php
    }

    Best regards,
    Ismael

    #916170

    HI the above code is useful but it unfortunately starts all the videos on the page working not just the first one.
    Is there a way it will start just the first video working?

    Also there was a misunderstanding about the title. We do not wish to turn off the page title but we would like the YouTube title across the video not to be visible. Usually this can be changed using the showinfo=0 addition to the link but it doesnt work.

    Please advise – access below.

    #916216

    or please look here:

    https://kriesi.at/support/topic/video-13/

    for your video:

    https://www.youtube.com/watch?v=3FDZYJo9Yfw?autoplay=1&loop=1&modestbranding=1&rel=0&ecver=2&showinfo=0&iv_load_policy=3

    look : https://webers-testseite.de/cynthia/video2/

    #916218

    Guenni, I don’t understand what I am being asked to do here.

    Are you suggesting I take out the functions.php put in above and add the link to the Video box?

    Helen

    #916219

    That link doenst work in the video box, it just puts text on the page.

    #916220

    no follow the link and do the rest.

    it is an easy slider / containing one video “slide” – The link is above for you
    you see on my testpage that it works without additional code in functions.php.

    Easy-Slider could be place in every container – even grid-layout. etc. pp

    It is Enfold 4.2.4

    here is an image-gallery: https://postimg.org/gallery/1l0tifbbg/

    #916225

    Got it. I made it work. I now have one with autoplay and others with autoplay disabled so perfect! Thank you.
    Now please help with removing the YouTube video title overlaying the video in full size. Can you help?
    Helen

    #916240

    what link did you insert ?

    #916242
    #916248

    can you please post your link of your page
    the showinfo=0 should supress that. ?

    right click on your link above and press open that link in new tab. You see no info at all – thats the point.

    do you see the title on my test page ?

    #916253
    #916266

    ha i got it.

    showinfo=0 and no branding ( youtube logo ) does not work together:

    so take this link instead:

    https://www.youtube.com/watch?v=3FDZYJo9Yfw?autoplay=1&ecver=2&showinfo=0&loop=1&rel=0

    #916269

    by the way you have to empty your cache.
    first i was seeing on my page a title as well – but see now:
    https://webers-testseite.de/cynthia/video2/

    so this seems to be the correct sequence for it –
    ?autoplay=1&ecver=2&showinfo=0&loop=1&rel=0

    autoplay – is self explanatory
    showinfo – is the title
    loop – is self explanatory
    ecver – enable/disable video suggestions on pause
    rel – show at the end or not

    #916278

    Fantastic! Thank you Guenni. It is all working exactly as I like it.

    With regards
    Helen

    #916288

    not for that.

    by the way – you could setup start and endtime of the video by:
    &start=x ( in sec.)
    &end=y ( in sec.)

    https://www.youtube.com/watch?v=3FDZYJo9Yfw?autoplay=1&ecver=2&showinfo=0&loop=1&start=11&end=327&rel=0

    see test-page of mine

    but i guess that end time will only work if no loop is set

    • This reply was modified 6 years, 10 months ago by Guenni007.
    #916300

    Thank you Guenni

    #916504

    Hi,

    Thanks @guenni007 for helping out :-)

    Best regards,
    Rikard

Viewing 24 posts - 1 through 24 (of 24 total)
  • You must be logged in to reply to this topic.