• Resolved Bryan SLC

    (@bryan-slc)


    I’m trying to get the YouTube embed to display on my customised theme home page

    I have successfully created a post and added the link in the normal way, and the YouTube plugin shows the video link window correctly on the post page. (http://www.searchlightconsulting.co.uk/2015/09/09/video-overview-of-what-we-do-now-available-on-youtube)

    Now I want to get a link to the YouTube video to display permanently on our home page. It is a customised version of Basis Theme, so behind it is a whole bunch of html/php code.

    If I go into the Appearance Themes Editor and choose the Home Template, what code would I insert to get the link picked up by the plug in. I thought I should be adding [embedyt]http://www.youtube.com/watch?v=JNewi8PG3EQ[/embedyt] somewhere, but…

    You can probably tell I am not a web coder and an amateur in WordPress;-)!

    https://wordpress.org/plugins/youtube-embed-plus/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Bryan SLC

    (@bryan-slc)

    With the help of YouTube I found out what the embed code was and played around with where to put it in my Home Page Template.

    It’s on the Home Page now, although my theme has three columns, so I can’t seem to get it adjust the width – its either whole page or column width (1/3).

    The html I added to my Template was straight from the YouTube Share Embed facility:
    <iframe width=”1280″ height=”720″ src=”https://www.youtube.com/embed/JNewi8PG3EQ&#8221; frameborder=”0″ allowfullscreen></iframe>

    Plugin Author embedplus

    (@embedplus)

    That’s because you have a responsive theme, and you have our plugin’s responsive video sizing option turned checked in the settings page. Therefore your video will always expand and contract to fill its container.

    This is desirable for most users since without responsive sizing, your hardcoded sizes might make your videos bust out of the sides of their containers (especially on mobile devices).

    -EmbedPlus Team

    Thread Starter Bryan SLC

    (@bryan-slc)

    Ah, that explains it. Thanks for clarifying.

    So, if I want to override, then I should uncheck that option and size it manually, but I run the risk that it won’t scale to fit the device’s space and might look naff on mobile, etc.?

    Plugin Author embedplus

    (@embedplus)

    Exactly Bryan.

    Shall we close this thread?

    -EmbedPlus Team

    Thread Starter Bryan SLC

    (@bryan-slc)

    Yes thanks

    Plugin Author embedplus

    (@embedplus)

    Great.
    We invite you to rate here>>.

    Plugin Author embedplus

    (@embedplus)

    Great.
    We invite you to rate here>>.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to embed YouTube link in customised theme template’ is closed to new replies.