Support » Plugin: jQuery Colorbox » [Plugin: jQuery Colorbox] link colorbox error with vimeo

  • Resolved mkudisch

    (@mkudisch)


    Hey,

    I’m trying to load a vimeo video in a colorbox by clicking on an image thumbnail. Images currently work fine, bringing up the colorbox as configured. Links work fine (such as wikipedia). But when I try to link to a vimeo video, the page appears in the colorbox like it should for a split second, then the link is activated and the browser redirects to the vimeo page. Is there a way to fix this? Youtube doesn’t work either (brings up just a blank page in the colorbox).

    Using wordpress 3.4 and twentyeleven.

    Any help much appreciated,
    Max

    http://wordpress.org/extend/plugins/jquery-colorbox/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author techotronic

    (@techotronic)

    opening youtube or vimeo videos in the Colorbox works just fine, see my example here:
    http://www.techotronic.de/plugins/jquery-colorbox/opening-links-colorbox/

    Cheers,
    Arne

    I figured it out. Was linking to the page not the player. Thanks though.

    Max

    jack randall

    (@theotherlebowski)

    for those who are also struggling your links for youtube videos should use the old URL structure:

    http://youtube.com/v/123456789

    rather than the newer ones with

    .com/watch?v=123456789

    so you end up with a link that looks like this

    <a href="http://youtube.com/v/123456789" class="colorbox-link">trigger here</a>

    as for vimeo links they are to be rendered like this:

    http://player.vimeo.com/video/12345678

    giving you a full link of

    <a href="http://player.vimeo.com/video/12345678" class="colorbox-link">trigger here</a>

    it took me a while to figure this out but hopefully it will help someone else out there… good luck, if you get it working it’s a cracking plugin 😀

    albigin

    (@albigin)

    God bless you

    theotherlebowski

    otherwise I’d dropped down the damn thing!

    jack randall

    (@theotherlebowski)

    no worries, glad to help 😀

    Hey can someone help here? I dont really get it.

    <div class=”thumb”>

    “>
    <?php print_thumbnail($thumb, $thumbnail[“use_timthumb”], $titletext, $width, $height, $classtext); ?>

    </div> <!– end .thumb –>

    this my div for thumbnail how can i integrate the colorbox here?

    so that everytime i click the thumbnail in wordpress, it will display a video which is written in the content…

    jack randall

    (@theotherlebowski)

    it doesn’t work on php code, only in html.

    if you want to display a thumbnail image that when clicked opens a video then you need to use html. you can put it in a div with a class of thumb if you want to.

    <a href="link to video" class="colorbox-link">
      <img src="location of the thumbnail goes here" />
      </a>

    hope that helps. 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: jQuery Colorbox] link colorbox error with vimeo’ is closed to new replies.