Embedding a youtube video in the portfolio section

  • Posted in : Empathy
  • svatisingh
    Member

    Hi there,

    I’m trying to embed a youtube vid into my portfolio (www.svatisingh.com).

    Here’s the code:

    <!– portfolio-item – lightbox video –>
    <div class=”media-cell illustration video hentry”>

    <div class=”media-box”>
    portfolio-post
    <div class=”mask”></div>
    <!– lightbox – video –>



    <!– lightbox – video –>
    </div>

    <div class=”media-cell-desc”>
    <h3>Easyjet for business</h3>
    <p class=”category”>Online campaign</p>
    </div>

    </div>
    <!– portfolio-item – lightbox video –>

    The youtube play button does appear but when you click on it, I get an error.

    Can anyone help out? :)) much appreciated. Love the theme btw.

    serkan
    Moderator

    Hi svatisingh,
    You can check out this related url.
    https://codeshare.io/ZajWU
    Could you try to use the url like this;
    ( not youtu.be, use youtube.com )
    Thanks =)

    svatisingh
    Member

    Hi there,

    yes I pasted the code exactly and changed youtu.be to youtube.com – it still doesn’t work though…. you can have a look at svatisingh.com/index_2.html

    serkan
    Moderator

    Hi svatisingh,
    Your youtube link is broken. I just replaced with a youtube url and lightbox videos is working well.

    svatisingh
    Member

    This is the link.

    https://www.youtube.com/watch?v=uoZdKUNb8bE

    It seems to work fine in youtube, so not sure how the link is broken. I tried your new code (which seems the same as the old code) with the link you gave. Your link works in youtube, but not on my portfolio site still – I think it must be a mac issue. I use a mac. I’ve tried on Chrome and Safari but still no luck. Oh well, if it’s doesn’t work, that’s okay. It would just be amazing if it does work.

    serkan
    Moderator

    Hi svatisingh,

    Do you paste the embed code or full url?

    It looks like you are pasting the embed code like this. Don’t use it.
    https://www.youtube.com/embed/uoZdKUNb8bE

    Just replace the full url, please.
    https://www.youtube.com/watch?v=uoZdKUNb8bE

    Thanks

    svatisingh
    Member

    Thank you, yes, just the regular link works. I needed to clear my cache as well and it works on the server (not on my hard drive).

    I’m delighted with the theme, and thank you for your support and being patient with me :))

    I’m going to see if I can add my site to your showcase now :))

    Svati

    serkan
    Moderator

    You’re welcome, please don’t forget to rate the template on themeforest if you liked it, thanks.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register