YouTube Editor Won't Center, Won't Fill Width of Container

Home Forums Gillion Theme YouTube Editor Won’t Center, Won’t Fill Width of Container

Home Forums Gillion Theme YouTube Editor Won’t Center, Won’t Fill Width of Container

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • kscott
    Participant

    Hello,

    I’m having trouble trying to center the YouTube widget in the theme. For some reason it doesn’t center in the container no matter what I do. It also won’t fill the width of the container that it’s in. Please see the URL in the private field below.

    Shufflehound
    Moderator

    Hi there,

     

    You can try this custom CSS:

    .wp-block-embed {
        display: table;
    }

     

    Please add it to the theme settings and let us know if that works! 🙂

     

    Best regards,

    Shufflehound team

    kscott
    Participant

    Thank you. That fixed the alignment issue. But the 16:9 aspect ratio should fill the container shouldn’t it? It’s still abnormally small.

    Shufflehound
    Moderator

    In that case, you can try to:

    • remove the code we just sent
    • go to the edit page of the post
    • find the YouTube embed block
    • set alignment to none (see in the attachment below)

     

    Let us know if that works! 🙂

    Attachments:
    You must be logged in to view attached files.

    kscott
    Participant

    No luck, it just left aligns the youtube video again and doesn’t fill the container. I updated the same URL again based on your feedback so it should be live there

    Shufflehound
    Moderator

    Can you please let us know if in the dashboard the YouTube embed is also small?

    kscott
    Participant

    No, it fills the container in the page editor just fine. It’s is not small like it is on the page itself.

    Shufflehound
    Moderator

    Oh, we just noticed that your website has an outdated theme version. That is most likely the cause.

     

    Please update it to the latest version and let us know if that works.

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

Popular choice

Professional Developers At Your Fingertips!

If you need services beyond standard support, we've got your back!

Services we offer:

Demo setup
Advanced customization
Layout adjustment
Graphic work / visualizations
Custom coding
Full WordPress development and design

Services

What we can offer

  • Demo setup +

    If you'd prefer not to handle the installation yourself or need help getting started, we'll set everything up for you.

  • Layout adjustment +

    We'll help you rearrange sections, adjust spacing, and modify the page structure to fit your needs.

  • Advanced customization +

    More complex styling changes, theme option modifications, and third-party integrations.

  • Custom coding +

    If you need something that's not included in the theme, we can code it for you.

  • Graphic work / visualizations +

    Web design services to create custom sections, pages, and blocks for your theme, plus graphics and visualizations.

  • Full WordPress development and design +

    Full website builds, custom theme development, or plugin creation from scratch.

  • About pricing +

    We'll provide a clear quote based on what you need. No hidden fees.

Professional Developers At Your Fingertips!

Custom Work Form