Support » Plugin: WordPress Featured Video - VideographyWP » Video as Featured Image is off to the left instead of centred

  • Resolved mugwumpr

    (@mugwumpr)


    Hello,

    I’m having a problem that I can’t seem to find an answer to.

    When the FI is a static image, it’s centred nicely over the title and the article, but when I use a video as the FI it moves to the far left side of the screen, looking odd.

    I’ve tried various CSS fixes without effect.

    I’m using WP 5.4.1 with the Twentyseventeen theme.

    Is there a way to get it centred in the same way the static FI is?

    Thanks!

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

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

    (@codeflavors)

    Hi,

    When you embed the video in place of the featured image, the embed is wrapped into a div element. This is the reason why the image is on the left side. Put this CSS into your child theme styles.css

    .single-featured-image-header .cvwp-video-player {
        margin-left: auto;
        margin-right: auto;
    }
    Thread Starter mugwumpr

    (@mugwumpr)

    Worked like a charm, thanks!

    I’m loving what this plugin lets me do.

    :oD

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Video as Featured Image is off to the left instead of centred’ is closed to new replies.