• Skip to main content
  • Skip to primary sidebar

WordPress HowTo

WPHowto is the place to download free WordPress plugins and free WordPress themes. WPHowto focuses on free how-to tutorials for WordPress, popular WordPress plugin/theme reviews, best cheap WordPress hosting reviews and tutorials on WooCommerce.

  • Home
  • Plugins
    • Themes
  • Hosting
  • Contact
    • Privacy Policy
  • About

How to Center a Tweet in WordPress

Twitter is a popular social media where we can share content and interact with users. If you are running a website on WordPress like me, you should know how important social sharing is to the success of a business. Twitter allows you to embed Tweets into your site, so you can share what’s happening on Twitter with your visitors. But how do you align it? In this article, I will show you how to center a Tweet in WordPress.

How to Center a Tweet in WordPress

1. Go to Twitter, select the Tweet that you wish to embed and click Embed Tweet.

screenshot showing the embed tweet menu on twitter

For WordPress, you could easily copy the link to the Tweet and insert into a page to embed it. But that way you won’t be able to center it. So we are going to use the full embed code.

2. Copy the embed code.

screenshot showing how to copy the tweet embed code from twitter

3. Create a new WordPress page or edit one and paste the embed code into the text editor.

screenshot showing how to embed a tweet in wordpress

4. By default, you will notice a class attribute in the embed code: class=”twitter-tweet”. Just edit the class attribute and add this class to it: tw-align-center. So your final class attribute should look like the following:

class="twitter-tweet tw-align-center"

5. That’s it. Now update the page and you should see the Tweet centered on the frontend of your website.

screenshot showing how to center a tweet in wordpress

Disclosure: This page may contain affiliate links. If you follow one of those affiliate links and purchase something it will provide me with a little bit of a commission. This costs you nothing extra but helps maintain my site, free plugins, and themes. So I thank you for your support.

Share this:

  • Twitter
  • Facebook
  • Pinterest

Related

Written by Noor Alam · Categorized: wordpress

Reader Interactions

Comments

  1. itunes gratis says

    Un buen articulo.

    Reply
  2. Jack Flowers says

    Thank you, any way to embed a tweet in wrapped format?

    Reply
  3. golden seo says

    nice and superb

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Search WP HowTo

Recent Posts

  • How To Disable Sticky Header in a Genesis Child Theme
  • How to Center a Tweet in WordPress
  • How to Add a Free SSL Certificate to Your WordPress Site
  • 34 Best Black Friday & Cyber Monday Discounts for WordPress (2019)
  • Introducing to WordPress Login & Admin Area on Bluehost

Top Posts & Pages

  • Gmail SMTP Plugin for WordPress
    Gmail SMTP Plugin for WordPress
  • WordPress PayPal Plugin
    WordPress PayPal Plugin
  • SMTP Mailer Plugin For WordPress
    SMTP Mailer Plugin For WordPress
  • How to Embed a Video in WordPress
    How to Embed a Video in WordPress
  • Videojs HTML5 Player For WordPress
    Videojs HTML5 Player For WordPress
  • How to Remove/Hide Image From WooCommerce Product Page
    How to Remove/Hide Image From WooCommerce Product Page
  • 6 Free WordPress PayPal Subscription Plugins for Accepting Recurring Payments
    6 Free WordPress PayPal Subscription Plugins for Accepting Recurring Payments
  • Best Cheap WordPress Hosting (2020)
    Best Cheap WordPress Hosting (2020)
  • How to Create a PayPal Subscription Button in WordPress
    How to Create a PayPal Subscription Button in WordPress
  • How to Add Email Subscriptions Option to Your WordPress Blog
    How to Add Email Subscriptions Option to Your WordPress Blog

Copyright © 2021 · WordPress HowTo

This website uses cookies to improve your experience. By continuing, you agree to their use.Got it! Learn More
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled

Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.

Non-necessary

Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.

SAVE & ACCEPT