Skip to main content
MindTouch Success Center

Add your Twitter feed to a page

header-user-navigation.png
Written by Miller Saltzman
Documentation Editor, Customer Success at MindTouch
This page applies to:MindTouch (current)

Social sharing is a stable of your marketing efforts. MindTouch allows you to easily embed twitter feeds on your pages. 
 

The MindTouch editor has a restriction on unsafe content and will not execute possibly malicious code if the user does not have the proper privileges. This includes DekiScript. If you are not assigned as an admin, you will not be able to save unsafe content in MindTouch. For more information read our article on unsafe content in the MindTouch editor.

 

How to embed your Twitter feed


To embed your Twitter feed, cut and paste the below codes into your page:

Step 1: Add the DekiScript code

<a class="twitter-timeline" href="https://twitter.com/@NAME" ('data-widget-id')="WIDGETID">"Tweets by @NAME"</a> 

Step 2: Add the JavaScript code

!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");

Step 3: Find your widget ID

Here is how to find your widget ID:

  1. Go to twitter.com/settings/widgets.
  2. Go to Create New widget. (Or click Edit next to one of your existing widgets and skip to step four.)
  3. After configuring your widget, click Create widget. 
  4. Your widget ID can be found in your URL: Twitter 4.png

Step 4: Replace your custom info

Replace NAME with your Twitter username and WIDGETID with your widget ID.

Step 5: Verify your Twitter feed appears

Your feed should look something like this:

  • Was this article helpful?