Support » Theme: Hueman » Center Align Embedded Tweets on Posts Automatically

  • Resolved AZBros

    (@azbros)


    Hi,
    Is there a custom CSS that would allow embedded tweets to automatically be centered on the post page?

    Right now all I have to do is insert the tweet URL into my post and it automatically embeds within my post. However, the tweet box is aligned to the left. I think it might look better centered on the page. I did some research and found out how to center align individual tweets, but I’d like to be able to simply post the link and have it auto-embed and center align.

    Any idea if this might be possible via CSS?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi AZBros,
    Can you put your link ?

    Thread Starter AZBros

    (@azbros)

    Hi mehrdads,
    My site isn’t online yet, I’m still working on it locally. I’d just like to adjust the standard WordPress Twitter embed style if that’s possible. I was hoping there might be a way to automatically center tweets that are embedded by pasting their URL into posts.

    @azbros – The embedded twitter object uses inline styles. You can override those using the !important rule:

    /* center twitter object */
    twitterwidget {
        margin: 0 auto !important;
    }
    Thread Starter AZBros

    (@azbros)

    Fantastic, that worked great! Thank you as always!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Center Align Embedded Tweets on Posts Automatically’ is closed to new replies.