TekRevue

  • HOME
  • MAC
  • macOS MOJAVE
  • iOS 12
  • WINDOWS
  • MOBILE
  • GAMES
  • REVIEWS
  • EDITORIALS
  • TIPS
    • Windows
    • Mac
    • Mobile
  • Twitter
  • Facebook
  • Google+
  • Feed
center embedded tweet

Tips

Twitter Tip: How to Center Embedded Tweets

By Jim Tanous on January 12, 2018 at 1:25 AM • @JimTanous

If you want to share something from Twitter on your website, Twitter makes it easy to embed a tweet. Embedding a tweet is often preferable to copying a screenshot of a tweet as it’s fully interactive and allows your website’s readers to jump directly to the Twitter user’s profile, retweet or quote the tweet themselves, and see any responses the tweet may have generated.

[Exclusive Xmas Offer] Free Get licensed Copies of MediaTrans & Win iPhone XR, Apple Watch, and more from Digiarty Software.

But there’s one big problem with the way that Twitter embeds tweets: they’re not centered. By default, embedded tweets are left-aligned.

This may not be an issue for you, but if you value design and consistency in your website, having embedded tweets aligned to the left can be quite annoying, especially if all of your other embedded images and videos are centered.

The good news is that it’s quick and easy to center an embedded tweet just by adding a bit of text to the embed code that Twitter provides. Here’s how it works.

Embed a Tweet

First, find the tweet you want to embed and grab its embed code. This is normally accomplished by clicking on the small downward facing arrow in the top-right corner and selecting Embed Tweet from the menu.

Copy the code provided by Twitter and head over to your website’s CMS. The process to add and edit HTML on your webpage will vary by platform, so be sure to check with your platform’s documentation if you’re unsure. For example, you can see the HTML and other code of a post on WordPress by clicking Text in the editor. Other platforms use the word Source. Once you’ve got it figured out, paste the tweet’s embed code in the desired location.

Center Embedded Tweets

Now, if we stop here, you’ll have a standard left-aligned tweet when you preview the page. To center an embedded tweet, look at the embed code and find this location near the beginning:

<blockquote class="twitter-tweet">

After twitter-tweet, but inside the quotation marks, add tw-align-center, making sure that you leave a single space between the two statements:

That’s it! Just save your change and preview or publish your post. You’ll now see that your embedded tweet is centered.

Want news and tips from TekRevue delivered directly to your inbox? Sign up for the TekRevue Weekly Digest using the box below. Get tips, reviews, news, and giveaways reserved exclusively for subscribers.

Share this:

  • Click to share on Facebook (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on Google+ (Opens in new window)

  • Categories: Tips
  • Tags: #Tweets #Twitter #Websites

Sign Up for the TekRevue Weekly Digest

Read more in Tips on TekRevue

  • plex web shows
    How to Disable Web Shows in Plex

    Filed Under: Tips

  • siri mac sierra
    Enable ‘Type to Siri’ to Type Your Siri Questions Instead of Speaking

    Filed Under: Tips

  • chrome auto sign-in
    How to Turn Off Google Chrome Auto Sign-In

    Filed Under: Tips

Search

Related Articles

  • twitter night mode
    How to Enable Twitter Night Mode for iOS, Android, and the Web
  • change default browser safari
    How to Change the Default Web Browser on Your Mac
  • The Quiet Type: 44% of Twitter Users Have Never Sent a Single Tweet

Connect with TekRevue

  • TekRevue on Twitter
  • TekRevue on Facebook
  • TekRevue on Google+
  • Cheats
  • Contributor
  • Deals
  • Distractions
  • Editorials
  • Gadgets
  • Games
  • Giveaway
  • Hardware
  • Home Theater
  • Mac
  • Mobile
  • News
  • Podcast
  • Reviews
  • Sponsor
  • More in Tips
  • Windows
  • plex web shows
    How to Disable Web Shows in Plex
  • siri mac sierra
    Enable ‘Type to Siri’ to Type Your Siri Questions Instead of Speaking
  • chrome auto sign-in
    How to Turn Off Google Chrome Auto Sign-In
  • skype messaging frustration
    How to Turn Off Skype Read Receipts for Mobile and Desktop
  • creative cloud older versions photoshop
    How to Install Older Versions of Creative Cloud Apps
  • search by image mac
    How to Use Google’s Reverse Image Search Feature on the Mac
  • itunes cancel subscription
    How to Cancel App Store Subscriptions via iOS and iTunes
  • youtube dark theme web
    How to Enable the YouTube Dark Theme in a Desktop Browser
  • chrome new look vs old
    How to Switch Back to the Old Chrome Design
  • apple store seoul
    Apple Store Music: How to Find the Songs Played in Apple Stores
  • google drive shared expiration
    How to Set Expiration Dates for Shared Google Drive Files
  • chrome app mode plex
    How to Run Plex and Other Web Apps in Chrome App Mode
  • google docs macbook
    How to See What’s Taking up All of Your Google Storage Space
  • office 365
    How to Deactivate Office 365 on an Old Computer
  • google docs macbook
    How to Clear Formatting in Google Docs
  • photoshop load as layers
    How to Open Multiple Images as Layers in a Single Photoshop Document
  • block notification firefox
    How to Block Website Notifications in Firefox
  • Gmail Tabbed Inbox Update
    Email Tip: How to Block Senders in Gmail
  • center embedded tweet
    Twitter Tip: How to Center Embedded Tweets
  • plex news
    How to Turn Off or Disable Plex News

Tips

  • Apps
  • Gaming
  • Mac
  • Mobile
  • Online
  • Windows
  • replace notepad notepad plus plus
    How to Completely Replace Notepad With Notepad++ in Windows
  • chrome picture-in-picture windows
    How to Use Chrome Picture-in-Picture in Windows 10
  • eartrumpet
    EarTrumpet for Windows 10: A Better Windows Volume Mixer
  • chrome hold command q to quit
    How to Turn Off the ‘Hold Command-Q to Quit’ Warning in Chrome for macOS
  • xbox store autoplay video
    How to Turn Off Xbox Store Autoplay Videos on the Xbox One
  • slow steam browser windows
    Here’s One Potential Fix for a Slow Steam Browser in Windows
  • How to Manually Dim the Xbox One Screen
  • xbox one store games
    How to Browse Games by Genre in the Xbox One Store
  • clipped documents
    How to Use Mojave’s Quick Actions to Quickly Combine PDFs on the Mac
  • hide app mac
    How to Hide Mac Apps in macOS via the Terminal
  • siri mac sierra
    Enable ‘Type to Siri’ to Type Your Siri Questions Instead of Speaking
  • microsoft word for mac mojave
    How to Change Case in Microsoft Word for Mac
  • siri mac sierra
    Enable ‘Type to Siri’ to Type Your Siri Questions Instead of Speaking
  • iphone live photo
    How to Convert a Live Photo to a Still Image With a Custom Key Photo
  • apple watch track calories
    How to Track Calories with the Apple Watch
  • iphone haptic feedback vibrate
    How to Turn Off Haptic Feedback on the iPhone
  • plex web shows
    How to Disable Web Shows in Plex
  • youtube dark theme web
    How to Enable the YouTube Dark Theme in a Desktop Browser
  • chrome new look vs old
    How to Switch Back to the Old Chrome Design
  • google drive shared expiration
    How to Set Expiration Dates for Shared Google Drive Files
  • av1 windows 10
    How to Play AV1 Videos in Windows 10 With the Free AV1 Codec
  • replace notepad notepad plus plus
    How to Completely Replace Notepad With Notepad++ in Windows
  • windows 10 power user menu
    How to Edit the Power User Menu (Win+X Menu) in Windows 10
  • windows laptop keyboard
    23 Lesser-Known But Handy Windows 10 Shortcuts
Company
  • About TekRevue
  • Get in Touch
  • Sponsorships

Sign Up for the TekRevue Weekly Digest

© TekRevue LLC. All Rights Reserved.

  • TekRevue User Agreement
  • TekRevue Privacy Policy

Built by Blazer Six