I want to embed a tweet with an image. When I embed a tweet on a blogdown post using shortcodes it does not appear in the twitter style
For example using the shortcode:
{{< tweet 989470885475008512 >}}
I get an output (my blogdown uses the academic theme)
rather than this (as shown in the blogdown guide)...
Is there a way to override this behavior to get the appearance like this second example or to embed a tweet following the dev titter guidelines (which when I paste the html code in gives output like the first image above).
I am guessing, but I think the loss of twitter style in the embedded tweet restricts the possibility to embed a tweet with an image (it gives similar output to the first example along with the image url).
UPDATE
This is a browser (Firefox) issue (as suggested by @hplieninger). The twitter style appears when viewing the page in Chrome.
Try this:
```{r echo=FALSE}
blogdown::shortcode('tweet', '989470885475008512')
```
Should work.
Instead of copying the id
of the tweet, simply click the drop-down icon at the top-right of the tweet, then select "Embed Tweet", copy the code and paste it into your markdown post. Go to your browser and you should see the effect.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With