Okay
  Public Ticket #189202
Vimeo video in lightbox
Closed

Comments

  • Steve started the conversation

    Hi there,

    I am having trouble getting the iframe embed code of a Vimeo video to open in a lightbox. I've tried using class="pp" without success. Could you please let me know how to phrase the line?

    Thank you!

  •  8,470
    Tahir replied

    Hey Steve!

    I am not sure what you mean to ask ?. Are you trying to use the inbuilt lightbox or adding some additional functionality in the theme  ?. Please elaborate. 

    Thanks


    ThemeNectar Support Team 

  • Steve replied

    Hi Tahir,

    I want to use the inbuilt functionality of the Salient theme. I am trying to get a small sized Vimeo video embed on the home page to expand when clicked - to fill the screen and have the background darkened (lightbox effect). I would like to know the syntax for achieving this result if you can help.

    Thanks again!

  •  8,470
    Tahir replied

    Hey Steve!

    Basically you just have to create a anchor tag and place the rel=prettyphoto to it. This is how the view larger button is coded :

    <a href="http://themenectar.com/demo/salient/wp-content/uploads/2013/11/weather-app.jpg" class="" rel="prettyPhoto[7442_gal]">View Larger</a>

    All the Best,

    -T


    ThemeNectar Support Team 

  • Steve replied

    Hi Tahir,

    Thanks for your response. In the portfolio section of the Salient demo page (see link below) the Vimeo video 'Sticky Sidebar' plays in a lightbox when you click 'play video'. This is the result that I want to achieve on my home page, but without the 'watch video' and 'more details' overlay. Is this possible in Salient without a plugin?

    Thanks again,

    Steve.

    http://themeforest.net/item/salient-responsive-mul...

  •  8,470
    Tahir replied

    Hey Steve !

    I am afraid this is not possible within the theme.

    All the Best.


    ThemeNectar Support Team 

  • Steve replied

    Thanks anyway Tahir.

    Do you know of a compatible plugin that will do this? I've tried several without success.

    Thanks, Steve.

  •  997
    ThemeNectar replied

    Hey Steve! Just to comment on this - you can open a Youtube or Vimeo video in a lightbox by adding the class ppĀ  - please enter this into the text tab on your editor and it should work:

    http://pastebin.com/dN10KvPf
    

    Cheers :)


  • Steve replied

    Thank you very much Nectar, that's awesome!

    Steve :)

  • Eric replied

    Hi there.

    That code works great as a button for me, and now I'd love to be able to have each portfolio item open like that (I only use video linked to vimeo on my site) 

    How could this 'pp class' be applied to Portfolio items?

  •  8,470
    Tahir replied

    Hey Eric!

    We do have a lightbox portfolio link option . Perhaps you are on a older theme version ? .

    Thanks


    ThemeNectar Support Team 

  • Eric replied

    Is it in the Main portfolio section or Nectar page builder portfolio section?

  • Eric replied

    Never mind. Got it finally