f(x) Share
f(x) Share is a very simple sharing plugin. You can easily add Facebook, Twitter, and Google+ share button to your content. After installation of this plugin, you can configure where to display and reorder your sharing buttons via the “Customizer” page under the “Appearance” menu where you can see t
f(x) Share is a very simple sharing plugin. You can easily add Facebook, Twitter, and Google+ share button to your content.
After installation of this plugin, you can configure where to display and reorder your sharing buttons via the “Customizer” page under the “Appearance” menu where you can see the changes live before you save them.
Features:
- 01Easily disable/enable sharing item and reorder it.
- 02Hide/display in post/page or any post type (custom post types are supported).
- 03Hide/display in archive page and single page.
- 04Customizer: See it live before saving the settings.
- 05Extendable and fully documented (read the Dev Notes).
- 06The GPL v2.0 or later license. 🙂 Use it to make something cool.
- 07Support available at Genbu Media .
Dev Notes
Notes for developer:
Github
Development of this plugin is hosted at GitHub . Pull request and bug reports are welcome.
Options
This plugin save the options in single option name: fx_share . To read more about the data structure you can read this tutorial:
How to Create Sortable Checkboxes Option in Customizer
Scripts
This plugin load two CSS in site front-end.
- fx-share-icon is the icon font.
- fx-share is the stylesheet.
Both are loaded using fx_share_scripts function hooked to wp_enqueue_scripts at default priority (10). To remove the default CSS, you can use this code in theme functions.php :
remove_action( 'wp_enqueue_scripts', 'fx_share_scripts' );
Hooks
List of hooks available in this plugin:
filter: fx_share_post_types (array)
List of post types in the checkbox option. You can remove or add post types in the list. As default it will list all public post types.
filter: fx_share_services (array)
List of supported sharing provider. As default it support facebook, google plus, and twitter. It’s a multi dimentional array, with array key as the service ID, each item has id , label , and callback node.