Embeding a Tweet

Hey,

I know it is not the first time this question is being asked on webflow, sorry for that but I am completely new to webflow and I have zero experience in code.

How can I embed a tweet in CMS posts?

Is there a way to embed anything into the RICH TEXT?

@iliab you can definitely embed a tweet within a cms page, not inside rich text at this point. i do know there are updates to the RTE planned but whether that includes embedding :woman_shrugging:.
To embed tweets in the cms (collections) pages take a look at both Custom code | Webflow University and Overview dynamic content | Webflow University

Hey sarah, thanks for your reply. I actually did find a way to embed a tweet inside the rich text and it works perfectly for me.

In case others will find it useful:

Insert this code in the blog post settings:

<script>
var Webflow = Webflow || [];
Webflow.push(function() {
  $('.w-richtext p').html(function() {
    return $(this).html().indexOf('&lt;') == 0 && $(this).html().match(/&gt;$/) != null ? $(this).text() : $(this).html();
  });
});
</script>

Make sure your website is published. Now you can just use any html code in the rich text such as tweeter, youtube, facebook or anything you desire and it will work. :slight_smile:

2 Likes

Here’s a simpler way to embed tweets in Collection Items: Is it possible to drop a link to a tweet and have it appear as an actual tweet? - #3 by ColleenBrady

1 Like