Title: Social Sharing (by Danny)
Author: Danny van Kooten
Published: <strong>November 20, 2013</strong>
Last modified: August 20, 2026

---

Search plugins

![](https://ps.w.org/dvk-social-sharing/assets/banner-772x250.png?rev=808288)

![](https://ps.w.org/dvk-social-sharing/assets/icon-256x256.png?rev=3578284)

# Social Sharing (by Danny)

 By [Danny van Kooten](https://profiles.wordpress.org/dvankooten/)

[Download](https://downloads.wordpress.org/plugin/dvk-social-sharing.1.3.12.zip)

 * [Details](https://en-ca.wordpress.org/plugins/dvk-social-sharing/#description)
 * [Reviews](https://en-ca.wordpress.org/plugins/dvk-social-sharing/#reviews)
 *  [Installation](https://en-ca.wordpress.org/plugins/dvk-social-sharing/#installation)
 * [Development](https://en-ca.wordpress.org/plugins/dvk-social-sharing/#developers)

 [Support](https://wordpress.org/support/plugin/dvk-social-sharing/)

## Description

#### Social Sharing By Danny

The simplest sharing links possible for Twitter, Facebook and LinkedIn.

Most WordPress plugins that add social sharing functionality are too ugly, heavy,
complicated or poorly coded for my liking. This plugin aims to be better: simple,
efficient and flexible.

#### No script dependencies

From itself, the buttons are actually plain text links which require **no external
scripts**. It makes no sense to load over 50 kilobytes of scripts and styles for
a functionality 95% of your users will not use.

#### Simple, yet pretty and user-friendly

You can have the plugin load two very small files to add icons and a pop-up functionality
to the sharing links. This way, users do not have to leave your website after clicking
a sharing option. Both files are optional and you are free to craft your own styles.

**Features**

 * Sharing links for Twitter, Facebook and LinkedIn
 * Simple icon styles with a hover effect
 * Simple script of just 426 bytes (with no additional dependencies) which will 
   make the various sharing links open in a pop-up window.
 * A shortcode and a template function to display the buttons anywhere you want.
 * An overridable filter to customize when and where to display the sharing links.
 * Translation ready

**Translations**

Is the plugin not translated into your language? You can [contribute your translations using the translation editor here on WordPress.org](https://translate.wordpress.org/projects/wp-plugins/dvk-social-sharing/).

**About the author**

[Danny van Kooten](https://www.dannyvankooten.com/) has been building WordPress 
plugins since 2010. He is also the developer behind [Mailchimp for WordPress](https://wordpress.org/plugins/mailchimp-for-wp/)
and [Koko Analytics](https://wordpress.org/plugins/koko-analytics/).

## Screenshots

[⌊Simple social sharing buttons shown at the end of a WordPress post.⌉⌊Simple social
sharing buttons shown at the end of a WordPress post.⌉[

Simple social sharing buttons shown at the end of a WordPress post.

[⌊Disable the default social sharing CSS to use your own theme styles.⌉⌊Disable 
the default social sharing CSS to use your own theme styles.⌉[

Disable the default social sharing CSS to use your own theme styles.

[⌊Choose large icons or add your own styling to make the sharing buttons really 
stand out.⌉⌊Choose large icons or add your own styling to make the sharing buttons
really stand out.⌉[

Choose large icons or add your own styling to make the sharing buttons really stand
out.

[⌊The Social Sharing settings page for choosing post types, networks, icons and 
pop-up behavior.⌉⌊The Social Sharing settings page for choosing post types, networks,
icons and pop-up behavior.⌉[

The Social Sharing settings page for choosing post types, networks, icons and pop-
up behavior.

## Installation

#### Installing the plugin

 1. In your WordPress admin panel, go to _Plugins > New Plugin_, search for _Social
    Sharing by Danny_ and click “Install now”
 2. Alternatively, download the plugin and upload the contents of `dvk-social-sharing.
    zip` to your plugins directory, which usually is `/wp-content/plugins/`.
 3. Activate the plugin.
 4. Go to _Settings > Social Sharing_ to choose the post types, social networks, icon
    styles and pop-up behavior.

#### Additional Customization

Have a look at the [frequently asked questions](https://wordpress.org/plugins/dvk-social-sharing/faq/)
section for some examples of additional customization.

## FAQ

### Does this plugin load external social media scripts?

No. The sharing buttons are plain links by default, so the plugin does not load 
external scripts from social networks.

### Which social networks are supported?

The plugin supports sharing links for Twitter, Facebook and LinkedIn. You can choose
which social sharing buttons to show from the plugin settings.

### Can I choose where the sharing buttons appear?

Yes. By default, the sharing buttons are added to posts. You can enable them for
other public post types from _Settings > Social Sharing_.

### Can I use my own CSS for the sharing buttons?

Yes. You can disable the default icon stylesheet from the plugin settings and style
the social sharing links in your theme.

### Can I display the sharing buttons using a shortcode?

Yes, you can use the following shortcode (eg. inside posts or pages).

    ```
    [dvk_social_sharing]
    ```

### Can I display the sharing buttons using a template function?

Yes, you can use the following PHP function from your template files.

    ```
    <?php echo dvk_social_sharing(); ?>
    ```

### I want more control over when to show the sharing options

Use the `dvkss_display` filter to show the links in more places.

_Example 1: will add the sharing links to everything possible_

    ```
    add_filter('dvkss_display', '__return_true');
    ```

_Example 2: will add the sharing links to all single posts, pages and other post
types._

    ```
    function my_display_condition() {
        return is_singular();
    }

    add_filter('dvkss_display', 'my_display_condition');
    ```

### Shortcode and function arguments

**element** (string)

The element to use as the wrapping element. Defaults to `p`, a paragraph element.

**twitter_username** (string)

The Twitter username to add to tweets. This will override the value from the settings
page.

**social_options** (comma separated string)

The social media buttons to show. You can also use this to change the order of the
buttons. Defaults to `twitter, facebook`. Possible values are `twitter`, `facebook`
and `linkedin`.

**before_text** (string)

The text to show before the links. This will override the value in the settings 
page.

**twitter_text** (string)
 **facebook_text** (string) **linkedin_text** (string)

The texts for the different links. Defaults to the string set in the translation
file.

## Reviews

![](https://secure.gravatar.com/avatar/225e8d7f3cc62f0474e8cab5595da578b7c2dc17281d4a59f46c85ab753dc811?
s=60&d=retro&r=g)

### 󠀁[I would kiss the author](https://wordpress.org/support/topic/i-would-kiss-the-author/)󠁿

 [ijkleban](https://profiles.wordpress.org/ijkleban/) June 4, 2020

Lightweight, elegent, non obtrusive custom styling ready. If light, fast and simple
is your game this plugin is fot you. I would really kiss people behind this plugin.

![](https://secure.gravatar.com/avatar/86d5c2263b0d0030e7ebf9d6cb6005c8dbd595f827f71045101eb1ea19d268df?
s=60&d=retro&r=g)

### 󠀁[Love the Plugin](https://wordpress.org/support/topic/love-the-plugin-66/)󠁿

 [lifestylermary](https://profiles.wordpress.org/lifestylistmary/) November 6, 2018

I am enjoying playing with WordPress.

![](https://secure.gravatar.com/avatar/ad106aa4d381f45c7f87eeea2fa9afdf32c5cb16b2d655f1c9c4dcfc44e3cdc6?
s=60&d=retro&r=g)

### 󠀁[Fast and Minimal](https://wordpress.org/support/topic/fast-and-minimal-2/)󠁿

 [limitcracker](https://profiles.wordpress.org/limitcracker/) May 6, 2018

Great plugin. Fast and minimal. Worked just great.

![](https://secure.gravatar.com/avatar/14f39a9b0690451042333238449cfb68d02bd0b9fcc16349cffc59410181c0db?
s=60&d=retro&r=g)

### 󠀁[Great plugin](https://wordpress.org/support/topic/great-plugin-16526/)󠁿

 [Nick Krastev](https://profiles.wordpress.org/nickykrastev/) January 19, 2018

Great plugin

![](https://secure.gravatar.com/avatar/3636e864faef8f9cb83d226bd9eb7a0ba28e83feafcf66e082ee790162dac68b?
s=60&d=retro&r=g)

### 󠀁[Just what I was looking for!](https://wordpress.org/support/topic/just-what-i-was-looking-for-336/)󠁿

 [Toronto SEO Guy](https://profiles.wordpress.org/toronto-seo-guy/) October 31, 
2017

I'd been looking high and low for a simple, minimalist social sharing plugin and
finally found it in Social Sharing by Danny! Unlike the vast majority of the other
social sharing plugins out there, Danny's frees you of the unwanted bells and & 
whistles that just needlessly suck up resources and complicate things. This plugin
is reliable, flexible, beautiful, and super-easy to implement. Best of all, the 
developer, Danny, is incredibly responsive and receptive to new ideas. In fact, 
I recently suggested a new feature and boom – literally within hours Danny had it
integrated into the plugin and working perfectly. Thank you Danny!

![](https://secure.gravatar.com/avatar/160effa6f198ef36de8fe1d6d72e3b68afa649ae6a1df3f44ba80987b1ccaf46?
s=60&d=retro&r=g)

### 󠀁[Awesome plugin](https://wordpress.org/support/topic/awesome-plugin-3039/)󠁿

 [chekmate](https://profiles.wordpress.org/chekmate/) September 2, 2017

Finally a plugin that doesn't use the wrong image for posting to Facebook and keeps
all the options on facebook available. I can chose my page or my profile to post
to. Love it.

 [ Read all 69 reviews ](https://wordpress.org/support/plugin/dvk-social-sharing/reviews/)

## Contributors & Developers

“Social Sharing (by Danny)” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Danny van Kooten ](https://profiles.wordpress.org/dvankooten/)
 *   [ ibericode ](https://profiles.wordpress.org/ibericode/)

“Social Sharing (by Danny)” has been translated into 6 locales. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/dvk-social-sharing/contributors)
for their contributions.

[Translate “Social Sharing (by Danny)” into your language.](https://translate.wordpress.org/projects/wp-plugins/dvk-social-sharing)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/dvk-social-sharing/),
check out the [SVN repository](https://plugins.svn.wordpress.org/dvk-social-sharing/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/dvk-social-sharing/)
by [RSS](https://plugins.trac.wordpress.org/log/dvk-social-sharing/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.3.12 – Jun 19, 2026

 * Bump the minimum requirements to WordPress 4.5 and PHP 7.4.
 * Build social sharing URLs using WordPress URL helpers and escape the generated
   output.
 * Improve escaping and text domain usage in admin and front-end templates.
 * Add Composer-based PHPCS and PHPStan tooling with GitHub Actions checks.
 * Run PHP syntax, PHPCS and PHPStan checks before creating a release package.
 * Update release package exclusions for the new development tooling.
 * Improve readme FAQ with user-facing answers about external scripts, supported
   networks, display options and custom CSS.
 * Improve readme screenshot captions and installation steps.
 * Remove outdated Google Plus references from the readme FAQ.

#### 1.3.11 – Jun 1, 2026

 * Implement some general hardening measures.
 * Bump tested WordPress version to 7.0.

#### 1.3.10 – Feb 13, 2026

 * Link to x.com instead of twitter.com
 * Ensure settings are autoloaded correctly.
 * Use short array syntax everywhere.
 * Explicitly specify number of accepted arguments for all hooks.

#### 1.3.9 – Oct 16, 2024

 * Address PHP warning introduced by version 1.3.8.

#### 1.3.8 – Oct 11, 2024

 * Escape shortcode arguments before outputting to prevent stored XSS from users
   with `edit_post` capability. Thanks to [Peter Thaleikis](https://peterthaleikis.com/)
   for the responsible disclosure.

#### 1.3.7 – Oct 1, 2024

 * Remove Google Plus as an option, since it has long been shut down.
 * Add `defer` attribute to pop-up script tag.
 * Improved sanitization of settings.
 * Disallow the use of `<a>` elements in the `before_text` setting if user lacks`
   unfiltered_html` capability.
 * Get rid of ES6 code in JavaScript files, to support older browsers.

#### 1.3.4 – Dec 23, 2022

 * Rewrite admin JavaScript to no longer require jQuery.
 * Minor PHP improvements.
 * Improved minification of all CSS and JS assets.

#### 1.3.3 – Dec 31, 2019

 * Remove unused LinkedIn parameters.
 * Switch to WordPress.org managed translations.

#### 1.3.2 – March 23, 2018

 * Minor code optimisations
 * Added `linkedin_text` shortcode argument to FAQ.

#### 1.3.1 – October 26, 2017

Misc. textual improvements.

#### 1.3 – October 4, 2017

**Additions**

 * Added LinkedIn.

#### 1.2.7 – January 6, 2017

**Improvements**

 * Use `https://` protocol for sharing links.
 * Use SVG icons.

**Additions**

 * Add “large” icon size option.
 * Choose social network options from settings page.
 * Added Italian translations, thanks to Alessandro Guidi.

#### 1.2.6 – March 29, 2016

**Fixes**

 * Apostrophes in titles not properly escaped in sharing URL’s. Thanks Robin Aldenhoven!

#### 1.2.5 – January 26, 2015

**Improvements**

 * Minor improvements to pop-up script

**Additions**

 * Added Finnish (fi_FI) translations, thanks to [Ari-Pekka Koponen](http://versi.fi/)

#### 1.2.4 – November 17, 2014

**Improvements**

 * Wrapped link text in element so it can be hidden using CSS
 * Improvements to pop-up JavaScript

#### 1.2.3 – September 4, 2014

**Improvements**

 * Added minified scripts and option to load minified version
 * Some textual improvements

#### 1.2.2 – April 30, 2014

**Fixes**

 * Fixed not being able to save all “auto add to ..” checkboxes unchecked

#### 1.2.1 – April 29, 2014

**Additions**

 * Added German translations, thanks Andreas Kuhl!

**Improvements**

 * Wrapped non-translatable strings in translation calls.
 * Updated Dutch translations

#### 1.2 – March 19, 2014

**Additions**

 * Added option to automatically add sharing options to all registered post types
 * Added Spanish translations, props to [Luciano A. Ferrer](http://cbasites.net/).

**Improvements**

 * Disabled Pop-up JS by default until we figure out a cross-browser compatibility
   fix.

#### 1.1 – February 19, 2014

 * Added: Slovenian translations, thanks to [Domen Hrabar, Viking Marketing](http://www.vikingmarketing.si/)
 * Improved: direct file access security

#### 1.0.9 – December 30, 2013

 * Added: Danish translation, thanks to [Finn Hoelgaard](http://fhn.dk/)!
 * Added: Russian translation, thanks to Nikita!
 * Improved: Pop-up script now waits for full page load.

#### 1.0.6 – December 20, 2013

 * Improved: Pop-up JS now used addEventListener to enable multiple event listeners(
   like a Google Analytics plugin) attaching to the sharing links.

#### 1.0.5 – December 9, 2013

 * Added: French translations, thanks to [Said](http://www.ninapeople.com/)
 * Improved: All backend strings are now translatable
 * Improved: Prevented direct access or search engine indexing of plugin files
 * Improved: Facebook URL sharing parameters

#### 1.0.4 – December 2, 2013

 * Improved: Minified pop-up script to 480 bytes.
 * Improved: Removed image attribute from Facebook Share URL. FB will now pick up`
   og:image` meta tags.

#### 1.0.3 – November 25, 2013

 * Fixed: undefined index notice when saving options.

#### 1.0.2 – November 20, 2013

 * Added: Dutch translation
 * Added: Option to change the text that shows before the sharing links.

#### 1.0.1 – November 20, 2013

 * Fixed: Added settings link to plugins overview page
 * Fixed: “tweet about” option in admin now tweets about the correct plugin.

#### 1.0 – November 17, 2013

 * Initial release

## Meta

 *  Version **1.3.12**
 *  Last updated: **2 months ago**
 *  Active installations: **2,000+**
 *  WordPress Version: ** 4.5 or higher **
 *  Tested up to: **7.1.3**
 *  PHP Version: ** 7.4 or higher **
 *  Language:
 * [Dutch](https://nl.wordpress.org/plugins/dvk-social-sharing/), [English (UK)](https://en-gb.wordpress.org/plugins/dvk-social-sharing/),
   [English (US)](https://wordpress.org/plugins/dvk-social-sharing/), [German](https://de.wordpress.org/plugins/dvk-social-sharing/),
   [Spanish (Chile)](https://cl.wordpress.org/plugins/dvk-social-sharing/), [Spanish (Spain)](https://es.wordpress.org/plugins/dvk-social-sharing/),
   and [Swedish](https://sv.wordpress.org/plugins/dvk-social-sharing/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/dvk-social-sharing)
 * Tags:
 * [facebook](https://en-ca.wordpress.org/plugins/tags/facebook/)[LinkedIn](https://en-ca.wordpress.org/plugins/tags/linkedin/)
   [social](https://en-ca.wordpress.org/plugins/tags/social/)[social sharing](https://en-ca.wordpress.org/plugins/tags/social-sharing/)
   [twitter](https://en-ca.wordpress.org/plugins/tags/twitter/)
 *  [Advanced View](https://en-ca.wordpress.org/plugins/dvk-social-sharing/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  66 5-star reviews     ](https://wordpress.org/support/plugin/dvk-social-sharing/reviews/?filter=5)
 *  [  2 4-star reviews     ](https://wordpress.org/support/plugin/dvk-social-sharing/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/dvk-social-sharing/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/dvk-social-sharing/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/dvk-social-sharing/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/dvk-social-sharing/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/dvk-social-sharing/reviews/)

## Contributors

 *   [ Danny van Kooten ](https://profiles.wordpress.org/dvankooten/)
 *   [ ibericode ](https://profiles.wordpress.org/ibericode/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/dvk-social-sharing/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.dannyvankooten.com/donate/)