Streaming live at 10am (PST)

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 https://university.webflow.com/article/embed and https://university.webflow.com/article/how-to-use-dynamic-embeds-on-your-webflow-site

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:

1 Like