Share button or social button are buttons aimed to facilitate the sharing of the page.
When a user clicks on them, the chosen social application opens with a message that the user can send.
The channels supported are:
<share twitter />
<share twitter widget="link" />
<share twitter widget="link" icon="solid-circle" />
<share twitter widget="link" icon="outline" width="60"/>
Below, you can see a map of the share component with the parameters:
for all supported channels.
<share
channel
widget="button|link"
name="name"
url="urlType",
icon="solid|solid-circle|outline|outline-circle|none"
width="integer"
/>
<share channel ...>Label</share>
where:
If no url option is given, the page url is chosen if permanent, otherwise the identifier permalink takes over
To add your own label, you need to use the element container form.
Example:
<share name="twitter"> Twitter</share>
The icon option permits to disable the icon with the value none, you can then choose your own icon
<share name="twitter" icon="none"><icon name="dashicons:twitter-alt" color="white"/> Share on Twitter</share>