Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #9990

    Hey guys.

    I’ve noticed that the slider by default doesn’t open video in itself. So I’ve changed the index.php file on the kriesi_post_thumb call ( line ~31 ) :

    $preview_image = kriesi_post_thumb($post->ID, array('size'=> array($kimg,$kimg),

    'display_link' => array('lightbox'), // linha alterada

    'linkurl' => array ('fullscreen','_preview_big'), //linha adicionada

    'wh' => $k_option[$kimg]

    )

    );

    So now is displaying like a single page post (single.php). When a image on the slider is clicked, open a lightbox with the image/video set in the post.

    But, I want to change it a little bit:

    1) When it’s a video link, play the video when clicked where the image is, like the Corona theme does.

    2) If that isn’t possible (what a shame), I want to when the slider image has not a video link, when click on the image, open the post page. With my solution, when I click on a image, opens a lightbox with the full size image clicked.

    Many thanks

    #66509

    Are you saying that you are able to use a video there instead of an image. I wanted to embed a vimeo video in the slider instead, so when clicked it will play like any other vimeo video.

    Is this possible?

    #66510

    No I can’t, I want to do this too.

    What I can do right now is, when click on an image of the slider, open a lightbox with the player of vimeo, youtube, whatever.

    If you want to try that, just edit the index.php file of the theme, like I did.

    But I want to do like you said, use a video instead of an image, like Corona theme does.

    Or, keep the way I did, but when an image is not linked on a video, when click on it, open the article’s page, instead of a lightbox with the image.

    Any admin can help us here?

    Thanks !

    #66511

    Hey,

    1) This is not possible – I’m sorry.

    2) Replace:

    $preview_image = kriesi_post_thumb($post->ID, array('size'=> array($kimg['shortcut'],$kimg['overwrite']),
    'display_link' => array('lightbox'), // linha alterada
    'linkurl' => array ('fullscreen','_preview_big'), //linha adicionada
    'wh' => $k_option['custom']['imgSize'][$kimg['shortcut']]
    )
    );

    with:

    if ( get_post_meta($post->ID, '_preview_big', true) ){
    $big_prev_image = kriesi_post_thumb($post->ID, array('size'=> array('M'),
    'wh' => $k_option['custom']['imgSize']['M'],
    'display_link' => array('permalink')
    ));
    }else{
    $preview_image = kriesi_post_thumb($post->ID, array('size'=> array($kimg['shortcut'],$kimg['overwrite']),
    'display_link' => array('lightbox'), // linha alterada
    'linkurl' => array ('fullscreen','_preview_big'), //linha adicionada
    'wh' => $k_option['custom']['imgSize'][$kimg['shortcut']]
    )
    );
    }

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Help with slider opening video’ is closed to new replies.