Community > Discussions
36 views
6 replies

Youtube link with Porto 5 - Say 'Refused To Connect'

Hi,
I've used the shortcode below to add a link to a youtube video.
I've never done this before so maybe I am doing something incorrect?

<div class="col-md-4"><a class="mt-xs mb-xs mr-xs popup-youtube btn btn-primary" href="https://youtu.be/T1qaNPRBGAw">Watch Video</a></div>

On my laptop (using chrome, firefox and IE) When the button is clicked a message says www.youtube.com refused to connect.

But, on my phone it works (havnt had chance to try on a tablet yet)

But on my laptop, the Porto example on Mandeeps website works OK,

Any ideas why this is happening?

Thank you,
Matt

 

mattfarmer mattfarmer
Published 01/29/2020 16:27
  • Porto
Add Comment
mattfarmer

I've also just tried the following embed code:   https://www.youtube.com/embed/T1qaNPRBGAw

But it gave a different error message.

The problem can be viewed at: http://www.worcesterpahire.co.uk/EquipmentToHire.aspx

And click on the button for Package 3

Thank you,
Matt

 

replied 01/29/2020 16:57
Ashish Pachori

YouTube videos only works if you use embed code in iframe tag. 

See shortcode:  http://porto.mandeeps.com/shortcodes/shortcodes-4/medias (YouTube)

Thanks

 

replied 01/30/2020 05:11
mattfarmer

Hi, 

But on your Porto demo site you are using a shortcodes for a lightbox that works ok.

http://porto.mandeeps.com/shortcodes/shortcodes-1/lightbox

This is what I am trying to use but I get the error message and I cant figure out why?

Thank you,

Matt

replied 01/31/2020 19:47
mattfarmer

Hi, Any help on this would be gratefully appreciated. Thank you,

Matt

replied 02/03/2020 22:45
Ashish Pachori

Please provide us with the URL of the page in question so we may take a look.

replied 02/04/2020 07:13
mattfarmer

No problem..

I re copied and pasted the code and it now works as expected.

Thank you,

Matt

replied 02/04/2020 10:20

Last Activity 02/04/2020 10:20