This module provides a very simple set of social buttons with super clean markup optimised for use with Bootstrap (e.g. https://www.drupal.org/project/bootstrap). The emphasis is on ease of use and simplicity.
The buttons can be placed on your site in either vertical or horizontal layouts, via either Drupal's block system, or inserted into any content via one or both of the following tokens:
[socbutt:horizontal]
[socbutt:vertical]
To use the blocks:
Nothing special needed here. Just visit your site's block configuration page (admin/structure/block) and enable one or both of the blocks provided by this module:
- Social buttons: horizontal layout
- Social buttons: vertical layout
To use the tokens:
1. enable the token filter module (https://www.drupal.org/project/token_filter)
2. go to admin/config/content/formats, click 'configure' on one of your site's Text formats
3. find the "Enabled filters" section, and tick "Replace tokens".
Once this is done, the socbutt tokens can be entered into any content that uses the Text format you just configured.
Font Awesome icons
If you have Font Awesome available, either via your theme or some other method such as the https://www.drupal.org/project/fontawesome module, then the buttons will be adorned with their respective icons as per the screenshot.
Upgrading from 7.x-1.3
Summary: flush your cache
Details: Version 7.x-1.4 and later use Drupal's theming layer, and will need you to flush your Drupal site's caches after upgrading. Use Drush, your admin menu, or visit admin/config/development/performance to flush your cache.
Note also that in previous versions, the email body contained a link to the current page. This has been removed, to provide a less opinionated default, but can be added back in by implementing hook_socbutt_buttons_alter().
Upgrading from 7.x-1.0
Before you upgrade from v1.0 of this module, if you have used either of the two social button blocks please do the following:
- take note of these blocks' configuration (visibility settings etc) and then disable the block(s)
- upgrade the module, then reassign the blocks as you had them originally.
This is necessary because the block IDs were changed in the code.
Project information
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.Maintenance fixes only
Considered feature-complete by its maintainers.- Project categories: Content editing experience, Integrations
151 sites report using this module
- Created by jeff h on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.


