Remarque : même si nos guides les plus populaires ont été traduits en français, certains guides sont uniquement disponibles en anglais.

Twitter Blocks

Use Twitter Blocks to display a feed of recent tweets and a Follow button that leads to your Twitter profile.

Regarder une vidéo

 Add a Twitter Block

To add a Twitter Block:

  1. Modifiez une page ou une publication, cliquez sur un point d'insertion et sélectionnez Twitter dans le menu. Pour en savoir plus, consultez l’article Ajouter des contenus à l’aide de blocs.
  2. In the block editor, click the Connected Account drop-down menu to select a previously connected Twitter account, or select Add an account and follow the authorization steps to connect a new one.
  3. Customize what displays in the block.
  4. To display tweets related to a search term or hashtag, instead of your own tweets, check Search.
  5. Cliquez sur Appliquer pour enregistrer vos modifications. 

Customize what displays

In the block editor, you can customize how your tweets display:

  • Use the slider to select the number of tweets to show in the block (1 to 20).
  • Check Show Avatar and Show Username to display this profile information next to each tweet.
  • Check Show Follow Button to add a Follow @YourName button that leads to your Twitter profile. 

Display a search feed

You can display a feed of other user's tweets by hashtag, mention, or a search term instead of displaying your own tweets. Search feeds display results from tweets posted in the last seven days. You can use the search function on up to 20 Twitter Blocks per site.

Displaying a search in the Twitter Block is a great way to:

  • Show mentions or hashtags about you.
  • Show tweets with a hashtag from a marketing campaign.
  • Show tweets related to a topic in your content.

To display a search feed:

  1. Check Search, then enter a search term.
  2. To display tweets by hashtag, enter #topic. For example, to display tweets about Squarespace, enter #squarespace.
  3. To display tweets by mention, enter @handle. For example, to display tweets mentioning the Squarespace twitter, enter @squarespace.
  4. Cliquez sur l’icône actualiser pour afficher les résultats.

For Twitter's guidelines on using query operators in their search, visit Twitter’s API reference index.

Include sensitive tweets

After enabling a search, you can choose to show tweets that Twitter or another Twitter user reported as sensitive. Check Include Tweets Marked As Sensitive to display them.

We recommend reviewing Twitter's sensitive media policy and guidelines for reporting sensitive content.

Personnaliser le texte

The tweets in Twitter Blocks don’t have their own style tweaks. Instead, they match your site's style settings. The tweak names vary depending on which template you're using.

  • Texte normal et symbole @ - Ils reprennent le style de votre corps de texte. Recherchez des ajustement appelés Texte, Texte de page ou Corps de texte.
  • Links, handles, and the # symbol - These follow your linked body text style. Look for tweaks called Link, Body Link, or Page Link.
  • Dans la famille Skye, tout le texte du bloc Twitter suit les modifications du corps du texte.

Refresh the feed

We update the connection with your Twitter account every minute. If you edit a Tweet and want the changes to display immediately, refresh your Twitter connection:

  1. Dans le Menu principal, cliquez sur Paramètres, puis sur Comptes connectés.
  2. Cliquez sur votre compte Twitter.
  3. Click Reset Data.

How content from Twitter displays

  • Protected tweets don’t display. To ensure your tweets display, unprotect them.
  • Replies don’t display unless included in a search.
  • The block displays one feed at a time; to display tweets from multiple accounts or hashtags, add multiple Twitter Blocks.
  • Tweeted media, like images and video, display as links.

Here's an example of how a Twitter Block can look on a site:

Dépannage

Twitter Blocks aren't displaying

Twitter Blocks might not display if you're using ad blockers in your browser. To fix the issue, remove any ad blockers in your browser. Try disabling all browser extensions.

Twitter Blocks aren't updating automatically

If Twitter Blocks aren't showing your latest tweets:

  1. Dans le Menu principal, cliquez sur Paramètres, puis sur Comptes connectés.
  2. Cliquez sur votre compte Twitter.
  3. Consultez l'article Télécharger les données.
Cet article vous a-t-il été utile ?
Utilisateurs qui ont trouvé cela utile : 43 sur 104