How to Add a "Share This Article" Button in Studio
In Studio, you can obtain the URL of the currently displayed page using a variable called $url
. By utilizing this variable, you can enable visitors to easily share the current page on social media platforms like X (formerly Twitter) and Facebook with just one click.
Detailed Steps for Adding a Share Button
For instructions on how to set up a share button for X (Twitter), please refer to the guide on installing an X share button.
For Facebook, use the following URL:
Facebook:
https://www.facebook.com/sharer/sharer.php?u=[Insert the URL of the page you want to share here]
Share Button Templates
The editor provides part templates for X and Facebook share buttons. You can add these from the embed menu in the add panel. These buttons can be freely customized in terms of design.
Social Media Sharing with Twitter and Facebook
By following these steps, you can enhance your page's interactivity and encourage visitors to share your content seamlessly across social media platforms.
ツイッター
ツイート
ソーシャルメディアシェア