Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Open youtube video on Lightbox in WordPress

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #38716
    mevaser
    Participant

    I am working on a WordPress theme which I want to add a Custom Fields for YouTube video, and this is what I got:

    How do I put a YouTube video with this?



    ID, 'youtube', true)) {
    $videourl = get_post_meta($post->ID, 'youtube', true);
    echo '';

    #105152
    mweldan
    Member

    i don’t have experience using custom field. i am sure it is easy to create plugin for this, create shortcode to pass youtube id from editor to plugin, and return value with proper embed code, or in your problem, return a button/link/etc, trigger open lightbox on click.

    #105153
    mweldan
    Member

    let me know if you still having problem with this. will spent some time to create it. :D

    #105257
    Timothy Smith
    Participant

    I use FancyBox



    ');




    $("#various3").fancybox({
    'width' : '75%',
    'height' : '75%',
    'autoScale' : false,
    'transitionIn' : 'none',
    'transitionOut' : 'none',
    'type' : 'iframe'
    });
    #105478
    mevaser
    Participant

    Thanks mate, this one did the trick: http://iaian7.com/webcode/Mediabox/

    The good thing, I place only the web address, and it makes it a playable video lightbox. Very nice.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Back End’ is closed to new topics and replies.