Lightbox Vine video in Portfolio

  • Posted in : impressivCard WP
  • mrtibbs
    Participant

    Is there a way to get vine videos working as a lightbox item in the portfolio section? Whenever I use the video shortcodes, it doesn’t work.

    Thanks!

    Mehmet S.
    Keymaster

    Hi, if you provide a downloadable video file, then I will do a test.

    mrtibbs
    Participant

    Here is an example vine that you can work with. Thanks!
    https://vine.co/v/h3uQHOxxUdH

    Mehmet S.
    Keymaster

    Just tested. It plays.

    See in the images:

    mrtibbs
    Participant

    Awesome thanks! Is there any way to adjust the size of the lightbox (or create another shortcode defining a different lightbox) so that it can be square?

    Mehmet S.
    Keymaster

    This is not possible by default, needs more further customization, you may consider working with a professional, if you are not familiar to WordPress coding.

    mrtibbs
    Participant

    I’m familiar enough with coding to adjust it I think. Could you point me in the right direction though? Where would I begin to look for the definition of the “lightbox”?

    ahmetsali
    Keymaster

    Hi, you can check the js/main.js in theme directory, and find line : 514, you will see fancybox iframe width and height parameters;

    // ------------------------------
    // LIGHTBOX
    function setupLigtbox() {
    	if($("a[rel^='fancybox']").length) {
    		$("a[rel^='fancybox']").fancybox({
    			padding : 0,
    			margin : jQuery.browser.mobile ? 0 : 44,
    			width : 640,
    			height : 360,
    
Viewing 8 posts - 1 through 8 (of 8 total)

The forum ‘impressivCard WP’ is closed to new topics and replies.