Support » Plugin: Genesis Featured Video » Keep the img on blog and video on single post

  • Hi Scott,

    Very useful plugin I must admit!

    I would like to ask you if there is a way to implement a new option:
    Keep the featured image on the blog page and swap it with the video on the single post page.

    Also, it would be great to keep the original Youtube control bar without the overlay bar.

    Many thanks in advance for your time.

Viewing 1 replies (of 1 total)
  • Plugin Author Scott DeLuzio

    (@scottdeluzio)

    Hi @panmaster
    While I haven’t tested this code, this should work for you. Copy and paste it into your functions.php file.
    Of course, your theme might use different action hooks for certain portions of this, so this may not work for you. If it doesn’t, please let me know which theme you’re using and I’ll try to get a better solution for you.

    add_action( 'pre_get_posts', 'add_video_to_posts', 1 );
    function add_video_to_posts() {
        remove_action( 'pre_get_posts', 'gfv_hide_video_on_post', 10 ) ;
    }
    add_action( 'gfv_add_post_image', 'sd_add_post_image' );
    function sd_add_post_image(){
        add_action( 'genesis_entry_header', 'genesis_do_post_image', 1 );
    }
    • This reply was modified 1 year, 11 months ago by Scott DeLuzio.
Viewing 1 replies (of 1 total)
  • The topic ‘Keep the img on blog and video on single post’ is closed to new replies.