• Resolved bungalowmonkeys

    (@bungalowmonkeys)


    The featured image of the posts is still showing on the blog page when the videos are added. I’ve looked through the functions.php to remove any instances that called on the featured image. What is the code that could be added to prevent this?

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

    (@scottdeluzio)

    Which child theme are you using? I’m wondering if there is something in the child theme’s files that is forcing the featured image.

    Thread Starter bungalowmonkeys

    (@bungalowmonkeys)

    It is a custom theme and does indeed appear to be a theme issue.

    Plugin Author Scott DeLuzio

    (@scottdeluzio)

    Hi,
    I responded to your email with the solution, but I’ll include my response here in case anyone else is having the same issue.

    In this plugin, the featured images get removed with:

    remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 );
    remove_action( 'genesis_post_content', 'genesis_do_post_image' );

    This works fine in most cases, as the featured image tends to be in the entry content or post content. However, in your theme, you’re relocating it to the entry header. There’s nothing wrong with that, just that my plugin didn’t account for that.

    In version 1.1.1, there is a new action hook that lets theme designers hook into the function that removes the featured image and remove the action used in their specific theme.

    In your case, it would be something like this:

    add_action( 'gfv_remove_post_image', 'your_theme_remove_post_image' );
    function your_theme_remove_post_image(){
        remove_action( 'genesis_entry_header', 'genesis_do_post_image', 1 );
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Featured image still showing when Video shows’ is closed to new replies.