這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 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 reply
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