WordPress.org

Support

Support » Themes and Templates » Video in slider

Video in slider

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author bradthomas127

    @bradthomas127

    @osckar – You would have to rebuild the ivew slider in your child theme.
    I only used the bits and peaces i needed from the responsive ivew slider

    Hi:

    ok, thanks!

    Hi:

    Just to share something:

    It’s possible to add a video to play instead of an image in home, you need this plugin http://wordpress.org/extend/plugins/featured-video-plus/

    I Just modified some code on the home.php file. For example, if you want to show a video on the article in Featured Section, all you need is to:

    Search for this:

    <a href="<?php the_permalink(); ?>">
    <img src="<?php echo leaf_get_post_image( '','',true,'', 'medium' ); ?>" alt="<?php the_title(); ?>" class="attachment-post-thumbnail wp-post-image"></a>

    and replace it with this code:

    <a href="<?php the_permalink(); ?>">
    <?php if ( has_post_video() ) {
        the_post_video();
    } elseif ( leaf_get_post_image() ) {
    ?>
    <img src="<?php echo leaf_get_post_image( '','',true,'', 'medium' ); ?>" alt="<?php the_title(); ?>" class="attachment-post-thumbnail wp-post-image">
    <?php }; ?></a>

    The same can be applied to the main article of the Categories Section.

    Of course, it’s better if you do it with a child theme 😉

    Though I tried to add it to the slider, but no success yet 😛

    Hope you can help,

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Video in slider’ is closed to new replies.