Plugin / Scriptless Social Sharing

Robin Cornett

Frequently Asked Questions (FAQ)

In version 3.0, very differently than they have been before. Originally, Scriptless used the Font Awesome webfont (version 4.7) to display icons, or you could roll your own. You still can roll your own, but as of 3.0, Scriptless has updated to Font Awesome 5.8.1. SVG icons are now the default. The webfont is still an option, and previous users will need to update their settings to switch to SVG. Text only buttons are now an option as well. And if you prefer flexbox for styling items in rows instead of table CSS, that’s now available on the settings page.
Scriptless Social Sharing currently supports the following social networks: Twitter Facebook Pinterest LinkedIn Reddit WhatsApp Pocket Telegram SMS Email Google+ is dead and has been removed from the plugin. Instagram does not support social sharing buttons.
Yes, using a filter, you can change which SVG icons are used. The plugin provides SVG alternatives for social networks if they are available. Want to use an icon not provided by the plugin? Load your own icons in your theme. Here’s an example of how you could switch to using the “square” icons for each network (not all networks have one): add_filter( 'scriptlesssocialsharing_svg_icons', 'rgc_use_square_icons' ); /** * Change the Scriptless Social Sharing SVG icons to use the square versions when available. * * @param $icons * * @return array */ function rgc_use_square_icons( $icons ) { $square_icons = array( 'email' => 'envelope-square', 'facebook' => 'facebook-square', 'pinterest' => 'pinterest-square', 'reddit' => 'reddit-square', 'twitter' => 'twitter-square', 'whatsapp' => 'whatsapp-square', ); return array_merge( $icons, $square_icons ); }
Version 2.0.0 changes everything here. The plugin now offers options for adding sharing buttons to each and every type of content on your site. Buttons can be added in multiple places, or easily add support so you can add buttons anywhere you like. The default button locations are: Before Content: at the beginning of the post/entry, within the post/entry content. After Content: at the end of the post/entry, within the post/entry content. Manual: select this if you are adding buttons with your own code (this ensures that the necessary styles are loaded, and some other housekeeping). To take advantage of the new location options, you must visit the plugin settings page and update your settings. Note: if you have code that removes the original buttons output and adds it back by hand, make sure that you select Manual for the location for each affected content type. The best way to change the button output location is by using a filter. This example changes the locations from using the_content filter (with hook set to false) to using action hooks instead. add_filter( 'scriptlesssocialsharing_locations', 'prefix_change_sss_locations' ); function prefix_change_sss_locations( $locations ) { $locations['before'] = array( 'hook' => 'genesis_before_entry', 'filter' => false, 'priority' => 8, ); $locations['after'] = array( 'hook' => 'loop_end', 'filter' => false, 'priority' => 8, ); return $locations; } If you use the Genesis Framework, there is a setting to tell the plugin to use Genesis hooks instead.
Yes! Introduced in version 3.0, the new sharing block allows you to put sharing buttons anywhere in your content. Add just a few buttons, or rely on the default configuration defined on the settings page.
As of version 2.0.0, you can add sharing buttons directly to your content with a shortcode. You can tweak the output, too. For example, to add the buttons to your content, exactly as you have them set up in your settings, just use this shortcode: [scriptless] If you want to remove the heading, try it this way (or customize the heading by adding text): [scriptless heading=""] Want to only show certain buttons in the shortcode? Add them as a shortcode attribute (separate with commas, no spaces). This will show just the email and facebook buttons: [scriptless buttons="email,facebook"]
Yes. First, you have to tell the plugin that it can, in fact, run, even on the relevant archive page: add_filter( 'scriptlesssocialsharing_can_do_buttons', 'prefix_add_buttons_archives' ); function prefix_add_buttons_archives( $cando ) { if ( is_home() || is_tax() || is_category() ) { $cando = true; } return $cando; } Then you can add the buttons to the individual posts (this example works only with the Genesis Framework): add_action( 'genesis_entry_content', 'prefix_scriptlesssocialsharing_buttons_entry_content', 25 ); function prefix_scriptlesssocialsharing_buttons_entry_content() { if ( ! function_exists( 'scriptlesssocialsharing_do_buttons' ) ) { return; } $is_disabled = get_post_meta( get_the_ID(), '_scriptlesssocialsharing_disable', true ); if ( ! $is_disabled && ! is_singular() ) { echo wp_kses_post( scriptlesssocialsharing_do_buttons() ); } }
Yes, this is intentional. Pinterest really really really wants your posts to have an image. The Pinterest button breaks if there isn’t an image. The plugin looks in three places to find one: 1) the custom Pinterest image; 2) the post featured image; and 3) if there is no featured image set, it picks the first image uploaded to that specific post. At this point, if there is still no image, rather than putting up a button which won’t work, the plugin won’t output a Pinterest button at all on that particular post.
You can add an image for the plugin to use specifically for Pinterest, instead of the post’s featured image. This image will be added to the Pinterest sharing button as well as hidden in your content, so that the Pinterest bookmarklet will be able to “see” the image.
As of version 2.3, the sharing buttons order can be changed on the settings page, either by dragging buttons to your desired order, or by updating the numbered inputs.

Ratings

5
36 reviews

Rating breakdown

Details Information

Version

3.1.3

First Released

18 Sep, 2010

Total Downloads

41,051

Wordpress Version

4.8 or higher

Tested up to:

5.3

Require PHP Version:

-

Tags

Contributors

Languages

DIRECTORY DISCLAIMER

The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.

The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.

Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.

While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.

wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.

Keep Leading Your Followers!
Share it for them.