WordPress.org

Ready to get started?Download WordPress

Plugin Directory

WPSocialite

Long page loads aren't fun for anyone. Use WPSocialite to take control of heavy social sharing links and load them how you want!

So what does this do?

WPSocialite uses socialite.js and implements it into the WordPress workflow, adding it automatically (or manually, if you choose) to your content.

Socialite.js allows us to define when we would like to load our social sharing links. For example, if we have a page with ten posts, each with their own set of Facebook Like, Google+ Share, and Twitter Share links, they could take some time to load. Using WPSocialite, you can load those individually when the user scrolls or hovers over a specific post.

Can I add the social links myself instead of letting the plugin place them?

Of course! Use the "manual" setting under the plugin settings (Settings->Discussion) and then use the following template tags in your template to display the links however you please.

The first template tag is to echo out the markup and display WPSocialite:

<?php wpsocialite_markup('large'); ?>

The second template tag is to get WPSocialite's mark up and place it in an object, if needed:

<?php
    $wpsocialite =  get_wpsocialite_markup('small');
    echo $wpsocialite;
?>

When using this method, be sure to include "large" or "small" inside the function (as seen above) to define which style WPSocialite will use to display your social links.

You can also use the shortcode [wpsocialite size="large"] or [wpsocialite size="small"] in a post or page and it will display the social sharing buttons anywhere you like.

Can I disable the plugins script loading in order to manually add the CSS and Javascript myself?

Yes! By dropping the following code into your wp-config.php file you will tell the plugin to not load its CSS and Javascript and give you the ability to add it manually.

define('WPSOCIALITE_LOADSCRIPTS', false);

Setting this to false tells the plugin to not load any Javascript. If you want the plugin to automatically load it again, simply set this to true or remove it completely.

To stop the plugin from automatically loading its CSS, you would use the following line in the same way:

define( 'WPSOCIALITE_LOADSTYLES', false);

Please note, when using this method if you are loading any social networks with an external file (Pinterest, for example), you will also have to load the javascript file associated with the network (wpsocialite/Socialite/extensions/socialite.pinterest.js).

Requires: 3.0 or higher
Compatible up to: 3.6.1
Last Updated: 2013-10-10
Downloads: 17,772

Ratings

4 stars
4.8 out of 5 stars

Support

0 of 5 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,2,2
100,5,5
100,1,1 100,1,1
100,1,1 100,1,1
100,1,1 100,2,2
100,1,1
100,1,1
100,1,1
100,1,1