Social

The [social] shortcode can display social media links specified at WP admin dashboard -> Chap Theme -> Chap Shortcodes.

When the share attribute is set to true then the share links for the current page will be displayed instead.

Social sharing links can easily be appended to all posts by placing the shortcode into WP admin dashboard -> Chap Theme -> Code -> After post content textarea.

[social] shortcode arguments
supported:
facebook|twitter|google plus|linkedin|pinterest|vk|instagram|youtube
classes:
Size -
[mini|tiny|small|medium|large|big|huge|massive]
Float -
[left floated|right floated]
Icon -
[icon|right icon|labeled icon|right labeled icon]
Other -
[compact|inverted|circular|fluid|active|disabled]
text:
Show text (default: true)
multiline:
Multiple lines (default: false)
only:
List of social medias to render, pipe-separated.
share:
Switches social media links to sharing links. Set to "true" to share the current page, or a custom link.
title:
Social sharing title (default: current page title).
image:
Social sharing image (default: current page featured image) (Pinterest only).
<social>
<social share="true">
<social share="true" title="Chap social sharing shortcode" image="//placehold.it/512x512.png">
<social share="https://chap.website" title="Chap WordPress theme">
<social multiline="true">
No text
<social text="false">
<divider>
<social small circular text="false">
<social labeled icon>

<social right labeled icon>
<segment inverted>
  <social inverted>
</segment>
<buttons vertical>
  <social>
</buttons>

<buttons>
  <social only="google plus|instagram|youtube|linkedin">
</buttons>
Attached

Lorem ipsum dolor sit amet, dolor maiorum ius ei, sea omnesque verterem ne. Facer decore theophrastus ne est, ea vim quot fierent eloquentiam, in reque porro mei. Ex legere laoreet scripserit ius, partem soluta timeam eu vim. Te mea congue aperiam, at mei diceret dolorum molestiae. Placerat complectitur vim ex. Lorem ipsum dolor sit amet, dolor maiorum ius ei, sea omnesque verterem ne. Facer decore theophrastus ne est, ea vim quot fierent eloquentiam, in reque porro mei. Ex legere laoreet scripserit ius, partem soluta timeam eu vim. Te mea congue aperiam, at mei diceret dolorum molestiae. Placerat complectitur vim ex. Lorem ipsum dolor sit amet, dolor maiorum ius ei, sea omnesque verterem ne. Facer decore theophrastus ne est, ea vim quot fierent eloquentiam, in reque porro mei. Ex legere laoreet scripserit ius, partem soluta timeam eu vim. Te mea congue aperiam, at mei diceret dolorum molestiae. Placerat complectitur vim ex.

<segment top attached>
  <lorem>
</segment>
<buttons fluid bottom attached>
  <social only="facebook|twitter|google plus|vk">
</buttons>

Leave a comment

Your email address will not be published. Required fields are marked *