Skip to content

Kirby 3.7.5

Quicktip: Simple share buttons

Tweet Button

<a href="https://twitter.com/intent/tweet?source=webclient&text=<?= rawurlencode($page->title()); ?>%20<?= rawurlencode($page->url()); ?>%20<?= ('via @your_account')?>" target="_blank" title="Tweet this">
 Tweet
</a>

This link will share the title and the corresponding url of the current page on Twitter. Replace @your_account with your own user name!

Facebook Button

<a href="http://www.facebook.com/sharer.php?u=<?= rawurlencode ($page->url()); ?>" target="_blank" title="Share on Facebook">
  Share on Facebook
</a>

This link will share the current page on Facebook.