1

I would like to embed tweets but without the engagement buttons, i.e. reply, retweet and like.

I have seen you can do this with the follow button:

Remove follow button from embedded tweet

I'm struggling to figure out how to do it for the buttons though.

How can I do this?

I tried:

<style>
.TweetAction { display: none; }
</style>
Adders
  • 665
  • 8
  • 29

1 Answers1

0

You could to this with jQuery.

jQuery('idOrClass').contents().find('.TweetAction').hide();

You just need to replace idOrClass with your #id or .class. This will go into the iframe and find every .TweetAction in it and hide it.

EDIT:

You need to wait till the iframe is loaded fully.

Try this:

jQuery( document ).ready(function() {
    jQuery('idOrClass').contents().find('.TweetAction').hide();
});
Patrick Mlr
  • 2,955
  • 2
  • 16
  • 25