Video Instead of Featured Image on Minimum Theme

Community Forums Forums General Discussion Video Instead of Featured Image on Minimum Theme

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  cehwitham 1 year, 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18453

    robertpacheco
    Participant

    Hello,

    I am working on a project using Minimum theme and I was asked to place an MP4 video on the FEATURED-IMAGE section of the homepage. HELP!!!!! I have tried all sorts of snippets with no luck. I am sure there’s definitely a way to do this.

    Thanks

    Rob

    #21146

    cehwitham
    Participant
    Post count: 396

    On my site using Minimum I wanted to replace the large image on the homepage with a slideshow instead of a static image. I amended the function in functions.php to the following:

    /** Add the featured image section */
    add_action( 'genesis_after_header', 'minimum_featured_image' );
    function minimum_featured_image() {
    if ( is_front_page() ) {
    wooslider( array( 'slider_type' => 'slides', 'smoothheight' => 'true' ) );
    }
    elseif ( is_singular( array( 'post', 'page' ) ) && has_post_thumbnail() ){
    echo '';
    echo get_the_post_thumbnail($thumbnail->ID, 'header');
    echo '';
    }
    }

    In this case I’m outputting the WooSlider. I suggest you would output a video. It may be easier to use a video service like YouTube rather than trying to integrate your own player.

    The Responsive Video Embeds plugin may also help you:

    http://wordpress.org/extend/plugins/responsive-video-embeds/


    Twitter: cehwitham Web: cehwitham.com

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

You must be logged in to reply to this topic.