• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Foliovision

  • Weblog
    • FV Player
    • WordPress
    • Video of the Week
    • Case Studies
    • Business
  • About
    • Testimonials
    • Meet the Team
    • We Support
    • Careers
    • Contact
    • Pricing
  • Products
  • Support
    • FV Player Docs
    • Pro Support
  • Login
  • Basket is empty

Simple and quick lightbox: class=”colorbox” for images

[Solved]

Foliovision › Forums › FV Player › Troubleshooting › Simple and quick lightbox: class=”colorbox” for images

  • Michael S. 11 years, 2 months ago

    I am trying to link an image with the quick and simple way to get a video into a lighbox using the following code:

    <a href="video.mp4"><img src="splash.png" alt="" /></a>

    On this page:

    http://content2conversion.com/3286-2

    But for some reason, it doesn’t seem to render or work with an image. But it works fine with a regular text link.

Viewing 24 replies - 1 through 24 (of 24 total)
  • Martin 11 years ago

    Hello Michael,

    I see the logic behind what you tried to do, however at this point the anchor link works only for text items.

    <a href="video.mp4" class="colorbox">lightbox</a>

    If you want to use an image, then you should be using the [fvplayer] shortcode, as documented here: https://foliovision.com/player/how-to-use-lightbox

    Thanks,
    Martin

    Michael S. 11 years ago

    Thanks Martin, but that doesn’t really produce the look I’m going for. I’m really perplexed as to why the plugin can’t wrap an image with a lightbox link- seems just as simple as a text link.

    Martin 11 years ago

    Hello Michael,

    we want to improve that, however could you please be more specific about what is the look you are going for? When we improve this functionality, it will look the same. That means a simple image will open a white lightbox overlay when clicked and that will play the video.

    Thanks,
    Martin

    Michael S. 11 years ago

    Martin,

    That’s the look I’m going for, just having a simple image that you click (not a thumbnail) and it opens up the lightbox. Very simple, nothing fancy.

    Is this in the works? Do you have an ETA? I need to get this implemented this week so if your solution won’t be available, I will have to look elsewhere (which wouldn’t be ideal because I just purchased a license for your product for $75.

    Martin 11 years ago

    Hello Michael,

    you can use any image in the [fvplayer] shortcode, it doesn’t have to be the video thumbnail. Or do you mean that it shows up as a video splash screen for a brief moment when you open the lightbox? Is that the behavior which doesn’t suit you here?

    Thanks,
    Martin

    Alec Kinnear 11 years ago
    Avatar photo

    Hi Martin,

    Let’s make clicking the video thumbnail open up the lightbox please with just a class on it (like class=”video-lightbox”).

    Hi Michael,

    Would that be enough?

    Making the web work for you, Alec

    Michael S. 11 years ago

    Alec & Martin,

    That would be more then enough! Just to confirm, it would look like the following?

    <a href="video.mp4" class="video-lightbox"><img src="image.png"></a>

    Martin 11 years ago

    Hello Michael,

    yes, that’s what it will look like.

    However the output of the above will be the same as of the following:

    [fvplayer src="video.mp4" splash="image.png" lightbox="true"]

    Could you please confirm if that’s it? You said that it doesn’t reproduce the look which you need. Could you please write some more about that?

    Thanks,
    Martin

    Michael S. 11 years ago

    Hey Martin,

    Here’s the look I want to go for:

    http://content2conversion.com/3286-2/

    The top image/button is what I want it to look like. Once you click it, the popup/lightbox appears.

    The image below it is what your plugin produces- looks more like a video thumbnail/window which doesn’t fit in with the overall design and functionality I wanted. What Alec had previously suggested is exactly what I’m looking for and need.

    Martin 11 years ago

    Hello Michael,

    when I click the top image/button my browser simply opens the MP4 file (the location bar URL changes to the MP4 file) and then you have to use the back button to go pack to the page. Although different browser may treat this differently.

    So it’s not a lightbox, but a simple link to the video file. You can put up a link like that by just using HTML, no need for any plugin or any class attribute:

    However if you need Amazon S3 signed URLs, then this won’t suffice and some plugin still needs to append the signature to the URL.

    I also had a look at our plugin on that page. It appears that there is some CSS conflict and it doesn’t appear right. We will work on that. Or it might be because of your CSS minify.

    Here’s a demo of what our video lightbox should look like: https://foliovision.com/player/demos/fv-flowplayer-lightbox

    Here’s another demo in which we removed the lightbox styling – perhaps that’s what you are really after, could you please check? https://foliovision.com/player/demos/flowplayer-lightbox-borders

    Thanks,
    Martin

    Michael S. 11 years ago

    Hey Martin,

    That’s my point, I can’t get just an image to link up to a lightbox. Your colleague Alec had suggested exactly what I was referring to “Let’s make clicking the video thumbnail open up the lightbox please with just a class on it (like class=”video-lightbox”).”

    My thought is I want it to look like the top image (not the second image that the plugin produces) and when you click the top image, it opens the video in the lightbox.

    Does that make sense?

    Michael S. 11 years ago

    And to refer back to your examples of what the plugin should produce- it’s still not what I’m looking for. All I want is a simple image to link out to a lightbox. Right now, your plugin does not produce that cleanly (not even in the samples you had pasted in).

    Martin 11 years ago

    Hello Michael,

    here’s another attempt, please have a look at the “Simple image linking to the video” here: https://foliovision.com/player/demos/flowplayer-lightbox-borders

    Is that it? I’m attaching a screenshot: https://foliovision.com/images/support/video-link-opened-in-chrome.png Is that what you are after?

    That is not a lightbox however, but a barebones MP4 file opened in the browser. In case the browser doesn’t support the MP4 playback in HTML5 (probably any Linux browser, Firefox on Mac and old Windows, Opera), it would probably show a message to install a plugin to play the video or a download dialog.

    So it’s not clear to me why do you want such feature. Are you perhaps using Amazon S3 signed URLs and do you want to generate these for your users for video download?

    Please let us know.

    Thanks,
    Martin

    Michael S. 11 years ago

    Hi Martin,

    I’m a bit confused- it doesn’t seem like you’re understanding my messages.

    I think your colleague Alec in his message pretty much nailed it. All I want is to have an image that links to a video, but instead of opening the MP4 file directly, I want it to show up in a lightbox with your plugin. Right now, your plugin does some extra styling to the image (thumbnail) like add a play button, among other things.

    All I want, and I think it’s pretty simple, is to have a non altered image, that when you click it, it brings up a video in a lightbox.

    Please refer to Alec’s message because he seemed to be in tune with what I was asking for:

    “Hi Martin,

    Let’s make clicking the video thumbnail open up the lightbox please with just a class on it (like class=”video-lightbox”).”

    Does that make sense?

    Martin 11 years ago

    Hello Michael,

    I see, so I think I finally understood that you don’t want any play icon on the image which opens the lightbox. So here’s an updated demo: https://foliovision.com/player/demos/flowplayer-lightbox-borders

    You mention that our player adds some other things. Does that mean that in your desired lightbox view, there should be no video controls or share bar (can be disabled globally).

    Thanks,
    Martin

    Alden P. 11 years ago

    I would like to achieve the same thing which is to have a custom button open the video in the lightbox. Could you please let me know how did you do it. I can only see the demo but no tutorial. Thanks!

    Martin 11 years ago

    Hello Alden,

    sorry about the delay, I was on vacation and our team was bogged down by other work.

    You can post your video like this:

    `[fvplayer src="{your-video.mp4}" width="640" height="360" splash="{your-button-image.png}" lightbox="true;{button width};{button height}"]`

    You also need to include a CSS like this in your theme:

    .flowplayer.lightbox-starter .fp-ui {
    background: none repeat scroll 0 0 transparent;
    }
    .flowplayer.lightbox-starter {
    background-color: transparent !important;
    }

    Making it work with a HTML like this is on our list:

    `<a href="video.mp4"><img src="image.png" /></a>`

    Update: this has been added in FV Player 6.0.5.18

    Thanks,
    Martin

    Paul 6 years ago

    5 years later and I can’t get it to work either.

    I would like to have an image on my website (full screen and with an hover-effect on it) and when the user clicks on it the fv video player pops up in a lightbox.

    Adding the class “colorbox”, “lightbox”, “lightbox-starter” and so on doesn’t give me any result.

    I can get the video to play in a lightbox with this code:

    <a href=”//cdn.foliovision.com/test.mp4″
    data-fancybox=”images”
    data-caption=”My caption”>

    But then the lightbox opens without fv player of course.

    How do I achieve this please?

    Paul 6 years ago

    5 years later and I can’t get it to work either.

    I would like to have an image on my website (full screen and with an hover-effect on it) and when the user clicks on it the fv video player pops up in a lightbox.

    Adding the class “colorbox”, “lightbox”, “lightbox-starter” and so on doesn’t give me any result.

    I can get the video to play in a lightbox with this code:

    <a href=”//cdn.foliovision.com/test.mp4″
    data-fancybox=”images”
    data-caption=”My caption”>

    But then the lightbox opens without fv player of course.

    How do I achieve this please?

    Paul 6 years ago

    Note for moderators: Your messaging system is deleting half of the code, but I hope you get the idea.

    Martin 6 years ago

    Hello Paul,

    if the video has a splash screen, it already looks like an image – the splash screen is the image. It’s the default mode of operation.

    If you would like to remove the play button from top of it, you can use CSS like this:

    .flowplayer.lightbox-starter .fp-ui > .fp-play {
        display: none;
    }
    

    Remember to read the introduction from our guide too: https://foliovision.com/player/advanced/css-tips-and-fixes

    Thanks,
    Martin

    Paul 6 years ago

    The Splash screen does not work for me, as my picture I want to display on my website is a really wide one. The video itself is 16:9.
    So if I set my custom image as the splash screen in the plugin, there will be black bars added to compensate for the different aspect ratio of the image. So using the splash screen does not work for me.
    All I need is a simple link for an already existing image on my website that will open the video with FV Player in a lightbox. Is that possible?

    Additional info:
    I am working with X-Theme.
    Adding data-fancybox=”images” to my video-link will give me my standard theme-lightbox, but of course not the FL-Player lightbox.

    Adding class=”colorbox” to my video-link does not work. Then the video just opens as a separate link and I have to go back to the previous page with my browser.

    Paul 6 years ago

    Just noticed that the video lightbox feature is a pro-feature. So I guess there is no way for me to test the fvplayer in a lightbox without paying for the Pro-Version?
    Displaying the videos in a lightbox is the only way I am able to built the website as intended. Is there any way for me to test this for free? I’m not willing to pay $75 for test purposes.

    Martin 6 years ago

    Hello Paul,

    I see the issue with the wide image you are running into. However the lightbox size can be different from the splash size on the page: https://foliovision.com/player/basic-setup/using-lightbox#setting-dimensions Doesn’t that fix the issue for you?

    Actually I found that the video width and height it not saving, so we will fix that.

    The lightbox feature is in the free FV Player.

    Thanks,
    Martin

Viewing 24 replies - 1 through 24 (of 24 total)
Reply To: Simple and quick lightbox: class=”colorbox” for images



Please Sign in or Register to upload files.

Related Posts

  1. SEO Images: Optimising for Google Images

    SEO Images: Optimising for Google Images

  2. FV Flowplayer Lightbox

  3. How to download protected images from Flickr

    How to download protected images from Flickr

Primary Sidebar

Troubleshooting

    Categories

    • Business
    • Camera Reviews
    • Case Studies
    • Design
    • FV Player
    • Internet Marketing
    • IT
    • Life
    • SEO
    • Slovak
    • Video of the Week
    • WordPress

    Footer

    Our Plugins

    • FV WordPress Flowplayer
    • FV Thoughtful Comments
    • FV Simpler SEO
    • FV Antispam
    • FV Gravatar Cache
    • FV Testimonials

    Free Tools

    • Pandoc Online
    • Article spinner
    • WordPress Password Finder
    • Delete LinkedIn Account
    • Responsive Design Calculator
    Foliovision logo
    All materials © 2026 Foliovision s.r.o. | Panská 12 - 81101 Bratislava - Slovakia | info@foliovision.com
    • This Site Uses Cookies
    • Privacy Policy
    • Terms of Service
    • Site Map
    • Contact
    • Tel. ‭+421 2/5292 0086‬