开发者 |
smub
griffinjt |
---|---|
更新时间 | 2015年4月7日 23:00 |
捐献地址: | 去捐款 |
PHP版本: | 3.4.1 及以上 |
WordPress版本: | 4.1.1 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
wp-content/plugins/
directory of your WordPress installation and then activate the Plugin from Plugins page.
Go to Settings > Floating Social Bar for options.
More Details can be found on the Floating Social Bar page. You can also watch the video below for further instruction.
[youtube http://www.youtube.com/watch?v=-K7aTPT56-Q]Yes, in fact there is both a template tag and a shortcode available for use.
Template Tag: floating_social_bar( $args = array(), $return = false )
In the template tag, you can pass in an array of arguments to denote which social services you want displayed. The order in which the services are entered will be the order in which they are displayed. The following keys are available for use:
if ( function_exists( 'floating_social_bar' ) ) floating_social_bar( array( 'facebook' => true, 'twitter' => true ) );
Shortcode: [fsb-social-bar]
The shortcode takes the same parameters as the template with the following syntax:
[fsb-social-bar facebook="true" twitter="true"]
To maximize the performance, we get the social media count from each API and store it in a cache for 30 minutes. It only gets the count for the post when its loaded to reduce server load. For example, if no one visits your two year old post, then this plugin will not waste your precious server resources for that post. It only gets the count right when a user visits the post or page. We have tested and noticed that this small delay have no impact in the number of shares you get. However, there is an option in the plugin setting’s page that allows you to change the minimum interval if you want to get faster updates. But remember, it will increase server load.
Easy. Just add static="true"
to the shortcode or 'static' => true
to the template tag inside your array of arguments to make the social bar static (non-floating).
Again, easy. Just add socialite="false"
to the shortcode or 'socialite' => false
to the template tag inside your array of arguments to prevent Socialite from running.
Yes you can hide the floating social bar on specific posts or pages. All you have to do is go on your post’s edit screen where you will find a metabox to hide the social share bar.
If you can see the share bar on your site, but it is not floating then 99% of the time it is a conflict with another plugin or your theme.