该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

RRSSB

描述

RRSSB stands for ridiculously responsive social share buttons and is an adaptation of Kurt Noble’s library for web. Install the plugin and use the exposed function or shortcode to display social sharing buttons on your site.

rrssb(options);

Function options can be a string (comma separated for multiple values)
or an array of strings

[rrssb options=””]

Shortcode options can be a string (comma separated for multiple values)

屏幕截图

  • Look how cool it is.

安装

Download or find in WordPress library. Install and activate. To make buttons appear, use the shortcode in one of your posts or pages. Alternatively use the exposed function rrsb(options); in any template file.

[rrssb options="<a comma separated list of social buttons>"]

For example:

[rrssb options="email, facebook, twitter, googleplus, linkedin, reddit, youtube, pinterest, pocket, github, tumblr, hackernews"]

Or use the exposed function rrssb(options); in any of your templates.

<?php
if (function_exists('rrssb')) {
    rrssb(array(
        'facebook',
        'twitter',
        'googleplus'
    ));
}
?>

A single comma separated string will work too!

<?php
if (function_exists('rrssb')) {
    rrssb('facebook, twitter, googleplus');
}
?>

Use the option ‘outside_loop’ if you want to add buttons to your header or to an archive page.

常见问题

Why aren’t the buttons showing up?

Did you add the shortcode or function? Make sure you are correctly passing the options in according to the examples in the installation section.

Why aren’t images or descriptions being populated in the share screens?

A few notes about this:
If you are working on a local development site, the pictures won’t show up and the Twitter character count will be off.
In a hosted environment, images will get pulled from the Facebook or Twitter metatags (you must include these yourself).
If the metatags are not available, images will be taken from the article in which the buttons are found.
If the description metatag is not available, it will be copied from your site’s tagline in WordPress’s settings.

评价

2016 年 10 月 11 日
I’ve installed the plugin as instructed, but it appears that the URL structure on most buttons is improperly encoded. For example: <a href="http://pinterest.com/pin/create/button/?url=https://sample-url.com/article-url-here/&media=&description=Description text … <a href=" https:="" sample-url.com="" article="" url="" here="" "="" class="more-link">Continue reading <span class="screen-reader-text">Title text</span></a>
2016 年 9 月 3 日 1 回复
I reviewed without reading the damn documentation. My fault! I was expecting a option page, but the plugin is actually a shortcode. Sorry guys! 🙁 Was: I’m using Genesis Framework. The plugin don’t have any options and the social icons for sharing doesn’t work. 🙁
阅读所有2条评价

贡献者及开发者

「RRSSB」是开源软件。 以下人员对此插件做出了贡献。

贡献者

帮助将「RRSSB」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

initial release