• The plugin seems to be working in that the videos are now replacing the featured image but they’re showing up twice and I can’t figure out how to fix this.

    My embed position is set to “replace feature image”, I have the featured image set to “show” and “Set image as featured image” is unchecked.

    I can provide screenshots if needed.

    The page I need help with: [log in to see the link]

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

    (@codeflavors)

    Hi,

    I notice that the archive page that displays your videos has this behavior: https://prolacrossetalk.com/category/video/

    The plugin uses a WP filter to replace the featured image. After having a look at your page source code I noticed that, for the other posts, the image is doubled, which leads me to assume that your theme calls the featured image twice which causes VideographyWP to embed the video twice.

    Here’s a screenshot for the code in your page: https://prntscr.com/t4vz0l and this is the image that is actually displayed into the page: https://prntscr.com/t4vzel

    The second image is hidden using CSS: https://prntscr.com/t4w09z; apparently, it is used on phones and small screen devices. The downside is that VideographyWP can’t know which featured image is used and which isn’t.

    A solution would be to follow your theme’s example and hide the second video using CSS:

    .mvp-blog-story-img.left.relative .cvwp-video-player:nth-child(2) {
        display: none;
    }
    Thread Starter hutton

    (@hutton)

    Ok thank you for the help. Where should I place this custom CSS? I tried using a plugin “Simple Custom CSS” and pasted the above in there but I’m still seeing duplicates.

    Plugin Author CodeFlavors

    (@codeflavors)

    Hi,

    The CSS should be placed in your theme/child theme stylesheet. If you edit your main theme stylesheet you will lose the changes when you update; a child theme solves this issue.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Featured Videos are showing up twice’ is closed to new replies.