Social - Share Button

About

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:

  • and messaging application (such as email, whatsapp, telegram, …)

Example

<share twitter />
<share twitter widget="link" />
<share twitter widget="link" icon="solid-circle" />
<share twitter widget="link" icon="outline" width="60"/>

Map

Below, you can see a map of the share component with the parameters:

  • widget: button (default) or link
  • icon: Solid, Solid Circle, Outline, Outline Circle

for all supported channels.

Brand Name Button
Solid
Button
Solid-circle
Button
Outline
Button
Outline-circle
Link
Solid
Link
Solid-circle
Link
Outline
Link
Outline-circle
Email
Facebook
Hackernews
Linkedin
Pinterest
Pocket
Reddit
Telegram
Tumblr
Twitter
Vk
Whatsapp
Xing

Syntax

<share
    channel
    widget="button|link"
    name="name"
    url="urlType",
    icon="solid|solid-circle|outline|outline-circle|none"
    width="integer"
/>
<share channel ...>Label</share>

where:

  • channel is one of the supported social channel name
  • widget permits to choose the type of output:
    • button (default): a button
    • link: a link
  • url is: (default to the first permanent link)
  • icon is the type of icon or no icon with none
  • width is the width of the icon.

If no url option is given, the page url is chosen if permanent, otherwise the identifier permalink takes over

How to customize the Share button ?

How to add a label ?

To add your own label, you need to use the element container form.

Example:

  • To add the label Twitter, you would use this syntax:
<share name="twitter"> Twitter</share>
  • The output is:

How to use your own icon ?

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>
  • The output would be:




Showcase yourself and your brand

Get free news, tips, and tricks
to create a remarkable experience for your readers.




Recommended Pages
Icon Default Location Combostrap
ComboStrap - Icon Component

An icon component that makes it easy to add icon to your pages
Layout Element
ComboStrap - Main Template Element

In a template layout, main is the element where the content of your page is rendered. In a template, the main element may have a: * header, located at its top * and footer, located at its...
Undraw Social Strategy Re Mk87
ComboStrap makes your pages Social

This page explains all social modules of Combostrap and how they help spread the words
Social Channel Follow Request
Follow Button

The Follow button is a button displayed on your websites to help users easily follow you. With a social handle name, social channel supports a follow request. You need to give your handle, ie your...
Layout Element
Main Footer Element

The main footer is a template element that is located at the bottom of the content. You will find generally in this area: an list of related pages content such as backlinks sibling and the...
Layout Element
Main Footer Slot

The main footer slot is a slot that replaces the content of the main footer The name of the main header slot is slot_main_footer. To add a main footer slot to all your pages: go to ...



Task Runner