AddToAny Share Buttons

描述

WordPress的AddToAny分享按钮插件通过帮助人们将你的文章和页面分享到以下任意服务来增加流量和参与度。服务包括Facebook、Twitter、Pinterest、WhatsApp、LinkedIn、Tumblr、Reddit、微信等100多个分享和社交媒体网站及应用。

AddToAny是通用分享的家,而AddToAny插件是WordPress最受欢迎的分享插件,自2006年以来使网站可以使用社交媒体。

分享按钮

  • 标准分享按钮 – 分享每篇内容。
  • 浮动分享按钮 – 响应式和可定制,垂直与水平。
  • 计数器-快速且正式的显示分享次数
  • 关注按钮 – 链接到您的Instagram、YouTube、Snapchat等社交媒体。
  • 图片分享按钮 – 用于分享图片的分享按钮。
  • 矢量分享按钮和关注按钮 – 自定义颜色SVG图标。
  • 自定义分享按钮图标–如果您喜欢,请使用您自己的图标。
  • 官方按钮,包括Facebook “赞 “按钮、Twitter “发推 “按钮、Pinterest “保存 “按钮和LinkedIn “分享 “按钮。
  • 通用电邮分享使其能够轻松地通过Gmail、Yahoo Mail、Outlook.com(Hotmail)、AOL Mail以及任何其他网络或本地应用程序进行分享。

自定义位置和外观

  • 在内容之前,在内容之后,或在内容之前&之后。
  • 垂直浮动分享栏和水平浮动分享栏
  • 可以作为节码,或主题布局中的小工具。
  • 通过模板标签进行编程

分析集成

  • 谷歌分析集成(访问指南)用于分享分析。
  • 使用Bitly和自定义URL缩短器跟踪分享链接。
  • 在文章和页面上显示分享次数

WordPress优化

  • 异步加载,因此您的内容会在AddToAny之前加载或与AddToAny并行加载
  • 支持HTML5、小工具、无限滚动、文章形式等主题功能。
  • 支持WooCommerce、多语站点、多站点网络和无障碍标准。
  • AddToAny是免费的–无需注册,无需登录,无需账户管理。

移动优化和视网膜就绪

  • AddToAny让用户可以选择从服务的原生应用或从WEB应用进行分享。
  • 响应式浮动分享按钮默认为移动设备,可配置的断点使浮动按钮适用于任何主题。
  • AddToAny的SVG图标在任何尺寸下都超轻巧且像素完美,并且AddToAny的自适应分享菜单适合所有显示器
  • AMP(加速移动页面)自动支持AMP页面上的社交分享按钮。

可定制和可扩展

广泛支持

  • 超过10年的开发
  • 超过1200万次下载
  • 已被翻译成几十种语言
  • 持续不断的社区支持

本插件一直致力于成为最好的WordPress分享插件。开发的动力来自于您的有好评价和反馈。

分享此插件

另请参见:

AddToAny博客 | 隐私政策

屏幕截图

  • AddToAny矢量分享按钮(SVG图标)像素完美,可定制
  • 当访问者使用“通用分享”按钮时会下拉的迷你分享菜单
  • 完整的通用分享菜单模式,包括所有服务。
  • 标准分享按钮的设置
  • 浮动分享栏的设置

安装

在WordPress中:

  1. 转到插件> 安装插件> 搜索addtoany
  2. 点按“立即安装”获取AddToAny插件
  3. 点按 “启用插件”

手动安装:

  1. add-to-any目录上传至/wp-content/plugins/目录。
  2. 通过WordPress中的 “插件 “菜单启用该插件。

WP-CLI安装:

  1. wp plugin install add-to-any --activate

常见问题

选项在哪,如何定制分享插件?

在WordPress中,进入设置> AddToAny。

使用 “外观>小工具”(或 “外观>自定义”)中的AddToAny 关注小工具设置关注按钮(如Instagram、YouTube等)。

要进一步定制AddToAny,请参阅WordPress分享文档中的AddToAny插件。许多定制将让你复制& 粘贴一行或多行代码到你的 “附加JavaScript “或 “附加CSS “框中。这些框在设置 > AddToAny中。

出了点问题。我应尝试先如何操作?

尝试暂时切换主题和禁用其他插件,以确定可能存在的问题。如果找到了问题,请尝试联系该主题或插件作者。如果在禁用所有其他插件的情况下,在默认主题下仍然存在问题,请搜索WordPress插件的支持论坛

欢迎在这里发帖,希望社区可以帮助到您。请描述您的问题,您已经做了哪些故障排除步骤,提供您网站的链接,以及任何其他可能的相关信息。

我的分享按钮无法显示。为什么,我应尝试如何操作?

您自己的设备/浏览器/连接上的某些内容可能会过滤掉主要的社交按钮。

尝试另一网络浏览器、设备和/或互联网连接,以查看按钮是否出现。诸如browserling.com或browserstack.com等类型的工具可以让您了解其他人查看的内容。此种不常见问题的通常原因是第三方浏览器附加软件,它可以阻止广告,并选择性地过滤掉主要的社交按钮。一些安全应用程序和互联网连接有一个过滤社交的选项。通常社交过滤选项默认为禁用,但如果您发现某些软件不适当地过滤了AddToAny按钮,请让AddToAny知道

分享的节码是什么?

您可以通过插入下面的节码,将您的分享按钮准确地放在您想要的地方。

[addtoany]

自定义分享网址,如:

[addtoany url="https://www.example.com/page.html" title="Some Example Page"]

通过指定以英文逗号分隔的服务代码来显示特定的分享按钮。

[addtoany buttons="facebook,twitter,email"]

将特定的图片或视频分享到某些接受任意媒体的服务(Pinterest、Yummly、Houzz)。

[addtoany buttons="pinterest,yummly,houzz" media="https://www.example.com/media/picture.jpg"]

对于Facebook的分享,如何设置Facebook使用的缩略图和描述?

Facebook希望分享页面的标题、描述和预览图片能在共享页面的Open Graph meta标签中定义。

在您的页面上使用Facebook的分享调试工具,查看Facebook如何读取您的网站。”Scrape Again “可测试网站更改并清除 Facebook 的页面缓存,或使用 Batch Invalidator清除 Facebook 的多个 URL 缓存。

要更改Facebook的标题、描述和/或图片,您的主题header文件应该根据Facebook的OpenGraph规范进行修改。在WordPress中,这可以通过插件来实现,例如Yoast SEOAll in One SEO Pack的社交元信息功能。请查看这些插件的详细信息,并在WordPress或插件作者的论坛上发帖寻求更多支持。

有关设置页面以进行 Facebook 分享的更多技术信息,请参阅 Facebook 文档中的 “网站分享最佳实践”。

为什么分享链接要通过AddToAny路由?

AddToAny路由可以实现发布者定制、访客个性化,并使AddToAny插件非常轻量级,而不需要持续的更新插件。在AddToAny菜单中,访客可以看到他们实际使用的服务。在移动端,AddToAny将分享的选择呈现在服务的原生应用或移动网站上,并且在下一次分享时会使用同一偏好。发布者利用AddToAny的服务,如电子邮件模板Twitter模板自定义参数URL缩短、本地化等。正如服务图标的变化一样,服务端点也在变化,AddToAny每天都会更新,以跟进服务端点和API的变化。

Instagram、YouTube、Snapchat等按钮在哪里?

通过在 “外观”>”自定义 “或 “外观”>”小工具 “中添加 “AddToAny 关注”小工具来配置您的社交媒体个人资料链接。

如何使用自定义图标?

将分享图标上传到单个目录中的公开位置,并确保图标文件名与AddToAny插件中打包的图标文件名一致。在WordPress中,进入设置>AddToAny>高级选项>勾选 “使用自定义图标 “复选框,并指定您的自定义图标目录的URL(包括尾部的/)。对于AddToAny的常用按钮,转到常用按钮,选择 “图像URL “并指定您的AddToAny常用分享图标的确切位置(包括文件名)。

如何在网站的特定区域放置分享按钮?

在主题编辑器(或其他代码编辑器)中,将此代码块放置在您希望按钮和每个图标出现在主题中的位置:

<?php if ( function_exists( 'ADDTOANY_SHARE_SAVE_KIT' ) ) { ADDTOANY_SHARE_SAVE_KIT(); } ?>

您可以指定AddToAny服务代码来显示特定的分享按钮,例如:

<?php if ( function_exists( 'ADDTOANY_SHARE_SAVE_KIT' ) ) { 
    ADDTOANY_SHARE_SAVE_KIT( array( 
        'buttons' => array( 'facebook', 'twitter', 'email', 'whatsapp' ),
    ) );
} ?>

自定义分享的URL和标题。

<?php if ( function_exists( 'ADDTOANY_SHARE_SAVE_KIT' ) ) { 
    ADDTOANY_SHARE_SAVE_KIT( array( 
        'linkname' => 'Example Page',
        'linkurl'  => 'https://example.com/page.html',
    ) );
} ?>

分享当前的URL和标题(客户端检测)。

<?php if ( function_exists( 'ADDTOANY_SHARE_SAVE_KIT' ) ) { 
    ADDTOANY_SHARE_SAVE_KIT( array( 'use_current_page' => true ) );
} ?>

对要分享的当前URL进行硬编码并修改标题(服务器端)。

<?php if ( function_exists( 'ADDTOANY_SHARE_SAVE_KIT' ) ) { 
    ADDTOANY_SHARE_SAVE_KIT( array( 
        'linkname' => is_home() ? get_bloginfo( 'description' ) : wp_title( '', false ),
        'linkurl'  => esc_url_raw( home_url( $_SERVER['REQUEST_URI'] ) ),
    ) );
} ?>

将特定的图片或视频分享到某些接受任意媒体的服务(Pinterest、Yummly)。

<?php if ( function_exists( 'ADDTOANY_SHARE_SAVE_KIT' ) ) { 
    ADDTOANY_SHARE_SAVE_KIT( array( 
        'buttons'   => array( 'pinterest', 'yummly' ),
        'linkmedia' => 'https://www.example.com/media/picture.jpg',
        'linkname'  => 'Example Page',
        'linkurl'   => 'https://www.example.com/page.html',
    ) );
} ?>

如何在站点的特定区域放置关注按钮?

请参阅支持的关注服务获取服务代码名称,然后将此示例代码放置在您希望关注按钮出现的主题文件中。

<?php if ( function_exists( 'ADDTOANY_FOLLOW_KIT' ) ) {
    ADDTOANY_FOLLOW_KIT( array(
        'buttons' => array(
            'facebook'  => array( 'id' => 'zuck' ),
            'instagram' => array( 'id' => 'kevin' ),
            'twitter'   => array( 'id' => 'jack' ),
        ),
    ) );
} ?>

如何添加自定义分享按钮?

您可以使用如Code Snippets等插件,添加以下PHP代码示例。

function addtoany_add_share_services( $services ) {
    $services['example_share_service'] = array(
        'name'        => 'Example Share Service',
        'icon_url'    => 'https://www.example.com/my-icon.svg',
        'icon_width'  => 32,
        'icon_height' => 32,
        'href'        => 'https://www.example.com/share?url=A2A_LINKURL&title=A2A_LINKNAME',
    );
    return $services;
}
add_filter( 'A2A_SHARE_SAVE_services', 'addtoany_add_share_services', 10, 1 );

如何添加自定义关注按钮?

您可以自定义下面的PHP代码示例,并将其添加到 “功能 “插件中,如Code Snippets插件。

function addtoany_add_follow_services( $services ) {
    $services['example_follow_service'] = array(
        'name'        => 'Example Follow Service',
        'icon_url'    => 'https://www.example.com/my-icon.svg',
        'icon_width'  => 32,
        'icon_height' => 32,
        'href'        => 'https://www.example.com/${id}',
    );
    return $services;
}
add_filter( 'A2A_FOLLOW_services', 'addtoany_add_follow_services', 10, 1 );

如何将标准分享按钮与文章的中心或右侧对齐?

这取决于您的主题,可以尝试在 “设置”>”AddToAny “中的附加CSS框中添加以下CSS代码。

要右对齐:

.addtoany_content { text-align:right; }

要居中对齐:

.addtoany_content { text-align:center; }

如何从单篇文章和页面中移除按钮?

当编辑文章或页面时,取消选中WordPress编辑器旁边的 “显示分享按钮”。确保通过更新或发布来保存您的更改。

之前的方法是在您不希望按钮出现的页面或文章的(HTML标签)中插入以下标签。<!--nosharesave-->

如何强制让按钮出现在每篇文章和页面中?

当编辑文章或页面时,请勾选位于WordPress编辑器旁边的”显示分享按钮”复选框。确保更新或发布以保存您的更改。请注意,默认情况下,AddToAny被设置为在所有文章和页面上显示。

之前的方法是将以下标签插入到您希望按钮出现的页面或文章的(HTML标签)中。<!-sharesave-->

如何从分类页或标签/作者/日期/搜索页中移除按钮?

前往 “设置”>”AddToAny”>取消勾选 “在归档页、文章的顶部或底部显示”。归档页面包括分类、标签、作者、日期以及搜索页。

如何以编码方式移除按钮?

您可以使用过滤器(PHP代码)禁用AddToAny共享,您也可以将其添加到 “功能 “插件中,例如Code Snippets插件。

在特定分类中禁用AddToAny分享,例如:

function addtoany_disable_sharing_in_some_categories() {
    // Examples of in_category usage: https://codex.wordpress.org/Function_Reference/in_category
    if ( in_category( array( 'my_category_1_slug', 'my_category_2_slug' ) ) ) {
        return true;
    }
}
add_filter( 'addtoany_sharing_disabled', 'addtoany_disable_sharing_in_some_categories' );

在特定文章类型中禁用AddToAny分享,例如:

function addtoany_disable_sharing_on_my_custom_post_type() {
    if ( 'my_custom_post_type' == get_post_type() ) {
        return true;
    }
}
add_filter( 'addtoany_sharing_disabled', 'addtoany_disable_sharing_on_my_custom_post_type' );

如何将垂直浮动的分享按钮栏相对于内容定位?

转到设置> AddToAny > 浮动 > 选择 “附加到内容”,然后输入与你要附加的HTML元素相匹配的CSS选择。

为什么Facebook的 “赞 “按钮或Pinterest的 “收藏 “按钮右边有这么多空白?

Facebook “点赞 “按钮的最小宽度是90像素。因为要在按钮右侧显示 “赞 “的总数。 详情请参阅Facebook的赞按钮文档

虽然这是不建议的做法,但您可以使用CSS代码来改变Facebook 点赞按钮的宽度,例如。.a2a_button_facebook_like { width:50px !important; }

启用 “显示数量 “的Pinterest Pin It 按钮为76像素。您可以使用CSS代码来改变宽度,例如。.a2a_button_pinterest_pin { width:90px !important; }

AddToAny是否兼容GDPR?

是的,AddToAny默认是兼容GDPR的

该插件是否输出W3C有效代码?

是的,此插件默认输出100%W3C有效的HTML5和CSS 3。

内容插入后如何用Ajax和无限滚动加载按钮?

AddToAny支持标准post-load事件

Ajax和无限滚动插件/主题会在插入内容后运行post-load事件,因此请插件和主题作者根据需要提供标准的post-load支持

使用下面的行来为AddToAny和其他插件调用post-load事件。

jQuery( 'body' ).trigger( 'post-load' );

如何将该插件设置为 “必须使用 “的插件,为所有站点自动加载并启用?

add-to-any插件目录上传到/wp-content/mu-plugins/目录下。然后在mu-plugins目录下创建一个代理PHP加载文件(如load.php),例如:

<?php require WPMU_PLUGIN_DIR . '/add-to-any/add-to-any.php';

评价

2021年5月18日
Setup is so fast! Thanks for the great plugin. The only thing that would be nice for five stars is if there were design options for the icons integrated.
阅读所有977条评价

贡献者及开发者

“AddToAny Share Buttons” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

“AddToAny Share Buttons”插件已被翻译至22种本地话语言。 感谢所有译者为本插件所做的贡献。

将“AddToAny Share Buttons”翻译成您的语言。

对开发感兴趣吗?

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

更新日志

1.7.44

  • Update the Print service to support AMP (thanks andrei0x309)
  • Enable the addtoany_icons_bg_color filter hook to programmatically change the color of icons
    • The addtoany_icons_bg_color filter only applies to the standard share buttons on AMP in this release
    • A future release will apply the filter globally on all pages

1.7.43

  • Update the vertical floating bar’s “Attach to content” option to check whether content exists before attaching

1.7.42

  • Update the “Show sharing buttons” meta box to not display in the WordPress editor when automatic placement is disabled for the current post type

1.7.41

  • Update Facebook icon color
  • Update CSS to automatically set left and right margins for standard placement in content
  • Fix alignment in the default Twenty Twenty theme

1.7.40

  • Require PHP 5.3 as a bare minimum for compatibility features

1.7.39

  • Fix AMP version of the AddToAny universal icon
  • Enable the addtoany_content_priority filter hook to modify the priority of standard placement in content
  • Add a workaround for a bug in Jetpack’s Related Posts on AMP pages that prevents some added content from loading
  • Bump minimum PHP version to 5.6

1.7.38

  • Update AMP support for compatibility with AMP’s standard mode

1.7.37

  • Harden option to toggle standard sharing placement on pages and the “page” post type

1.7.36

  • Apply the “Show sharing buttons” option to the floating vertical bar when Placement is set to “Attach to content”

1.7.35

1.7.34

  • Add MeWe
  • Update Evernote icon color
  • Replace Google+ with Email as a default share button

1.7.33

  • New translatable strings for the optional post-share modal
    • “Thanks for sharing!”
    • “Thanks for following!”
    • You can configure the new post-share “Thanks for sharing!” modal and ad unit, rolling out soon for WordPress sites. By default, the modal only displays on pages that have an existing ad tag. You can enable and disable the modal and the ad, or add your own ad unit to be rotated along with AddToAny’s
  • Move the “Show sharing buttons” meta box to the side of the WordPress editor
  • Fix issue where an extra floating vertical bar could appear when Placement is set to “Attach to content”
  • Add some supplementary escaping

1.7.32

  • Fix the option to hide a floating bar when scrolled to a footer region
  • Fix placeholders and add a description for translating a string in admin (thanks Andreas)
  • Remove unnecessary data attributes from AddToAny Follow widgets
  • Add some supplementary escaping
  • Simplify some variable assignments

1.7.31

  • Update language template file and extension
  • Remove StumbleUpon

1.7.30

  • Fix issue where the “Show count” checkbox was unavailable for some services in settings

1.7.29

  • Initialize AddToAny Follow buttons on the post-load event
  • Harden the local cache option to keep caches updated
  • Update official button options in admin

1.7.28

  • New option to hide a floating bar until scrolled past a header region
  • New option to hide a floating bar when scrolled to a footer region
  • New “Center docked” option for the horizontal floating bar

1.7.27

  • New “Attach to content” option for the vertical floating bar
  • Add Mix
  • Remove Delicious
  • Remove Polyvore
  • Remove Yahoo Bookmarks
  • Remove Yahoo Messenger

1.7.26

  • Add Mastodon share button
  • Update admin interface
  • Remove the LinkedIn share count option because LinkedIn no longer provides share counts
  • Remove Oknotizie

1.7.25

  • Fix service count options in settings
  • Load JS for the customizer only when the customizer is used (thanks Neil)

1.7.24

  • Move JS into a single block to prevent issues caused by some site optimization plugins
  • Simplify file paths & URLs
  • Prevent Cloudflare’s experimental Rocket Loader from causing script issues
  • Remove Google+ share count options because Google+ no longer provides counters
  • Remove AIM, BuddyMarks, diHITT, Jamespot, Netlog, NewsVine, NUjij, Segnalo, Stumpedia, YouMob

1.7.23

  • Add addtoany_content class name to container in content
    • The container’s addtoany_share_save_container class name will be removed in a future plugin update
    • Reference .addtoany_content instead of .addtoany_share_save_container
  • Add addtoany_share class name to universal share button
    • The button’s addtoany_share_save class name will be removed in a future plugin update
    • Reference .addtoany_share instead of .addtoany_share_save
  • Add Medium follow button
  • Update Blogger service code
  • Remove Klipfolio
  • Remove Webnews

1.7.22

  • Use WordPress 4.9 code editor for Additional CSS and Additional JavaScript boxes
  • Rename CSS handles to addtoany
  • Remove “Use default CSS” option
    • If needed, you can disable the default stylesheet using add_action( 'wp_enqueue_scripts', function() { wp_dequeue_style( 'addtoany' ); }, 21 );
  • Remove menu style button in admin
  • Use Italian language pack (thanks truttle, blogforum)
  • Use Spanish language pack (thanks Luis Rull, Juan Ramón Navas, Yan Arlex)

1.7.21

  • Fix simplified initial a2a_config JS so overlays are not enabled by default

1.7.20

  • Show the optional sharing header for WooCommerce standard share buttons placement
  • Harden the “Show sharing buttons” checkbox so it works when other plugins conflict
  • Escape attributes in admin (thanks Ricardo Sanchez)
  • Simplify initial a2a_config JS

1.7.19

  • Resolve issue in admin with out-of-date PHP versions below PHP 5.5
  • New icon color options in AddToAny settings
  • New background color options for floating bars
  • The background for floating bars now defaults to transparent
  • Add a tip for AddToAny Follow buttons (Instagram, YouTube, Snapchat, etc.) in Add/Remove Services
  • Update YouTube icon

1.7.18

  • New icon color options in AddToAny settings
  • New background color options for floating bars
  • The background for floating bars now defaults to transparent
  • Add a tip for AddToAny Follow buttons (Instagram, YouTube, Snapchat, etc.) in Add/Remove Services
  • Update YouTube icon

1.7.17

  • Add Threema
  • Add Houzz
  • Add StockTwits
  • Remove App.net
  • Remove Baidu

1.7.16

  • Set the CSS enqueue priority to 20 to load after most theme stylesheets
    • Resolves lines under buttons (box-shadow) caused by CSS such as the default Twenty Seventeen theme’s stylesheet

1.7.15

  • Use the wp_enqueue_scripts action hook instead of wp_print_styles for the plugin’s stylesheet
  • Use the home_url() instead of the Host header when generating the current URL to be shared (thanks Paul)

1.7.14

  • Fix the standard placement option for WooCommerce Product types

1.7.13

  • Update standard placement for WooCommerce to display share buttons after the product meta block instead of the product description
    • In WooCommerce, you can customize where share buttons display by editing your share.php Single Product Share template.
  • Use Japanese language pack (thanks miccweb)

1.7.12

  • Use rel="noopener" on links that open in a new tab/window for site JavaScript performance in some browsers
  • Fix the [addtoany] shortcode’s buttons attribute

1.7.11

  • Add icon size option to Follow buttons widget
  • Replace “Large” and “Small” icon size options with single field
  • Replace old universal buttons with custom button URLs
  • Update CSS to apply style to custom icon sizes
  • Always use HTTPS script and endpoints

1.7.10

  • Fix vertical floating bar’s class name and media query from the previous release

1.7.9

  • Show optional meta box (“Show sharing buttons”) below the WordPress editor by default, without having to save AddToAny settings first
  • Enable the shortcode_atts_addtoany hook to filter the default attributes of the [addtoany] shortcode
  • Accept kit_additional_classes argument in Floating and Follow button output functions (thanks Rocco Marco)

1.7.8

  • AddToAny Follow widgets will now use full URLs when specified for a service ID
  • Add Papaly
  • Add Refind
  • Update Pinterest icon

1.7.7

1.7.6

1.7.5

  • Add background colors to share buttons on AMP (Accelerated Mobile Pages) to support new AddToAny SVG icons
  • Fix AMP issue from in_the_loop check in 1.7.3
  • Remove in_the_loop context check because AMP doesn’t use the loop
  • Use packaged AddToAny icon in admin (thanks xaviernieto)

1.7.4

  • Fix custom/secondary contexts check when the WP query object is unavailable

1.7.3

  • Add icon size options for the floating share buttons
  • Replace packaged PNG icons with SVG icons
  • Update services in AddToAny settings
  • Update standard placement to prevent the share buttons from automatically appearing in custom/secondary contexts
  • Set feed URL & title in AddToAny Follow widgets using HTML5 data attributes

1.7.2

  • Accept arguments in universal button template tag for additional classes and HTML contents
  • Override box shadow on buttons in some themes such as the new Twenty Seventeen default theme in WordPress 4.7

1.7.1

  • Fix floating share buttons fallback so that the current page is shared by default
  • Show meta box (“Show sharing buttons”) below the WordPress editor when a floating share bar is enabled
  • Remove deprecated option that displayed the title in the mini menu
  • Add Douban share button
  • Add Draugiem share button

1.7

  • Simplify AddToAny asynchronous loading method
  • Use HTML5 data attributes for AddToAny instances
  • Remove old script block in footer
  • Increase support for AJAX loading by listening for the post-load event on non-AJAX requests
  • AddToAny readiness check in AddToAny settings
  • Add placement option for media pages in AddToAny settings
  • Handle “Show sharing buttons” option for media when updating from the WordPress editor
  • Add Copy Link button
  • Add Facebook Messenger share button
  • Add Trello share button
  • Update a few packaged icons

1.6.18

  • Fix default icon size

1.6.17

  • New media attribute for sharing a specific image or video to the few services that accept arbitrary media (Pinterest, Yummly)
  • Update [addtoany] shortcode to accept specific media URL
    • Specify a direct media URL in the media attribute like [addtoany buttons="pinterest,yummly" media="https://www.example.com/media/picture.jpg"] to have Pinterest pin that image

1.6.16

  • Fix customizer preview check for WordPress versions older than 4.0 (thanks Jessica)

1.6.15

  • AddToAny widgets support new selective refresh in the WordPress 4.5 Customizer
  • AddToAny share endpoints default to HTTPS on HTTPS sites
  • Permit changing the target attribute for custom services (thanks Jasper)
  • The meta box (“Show sharing buttons”) below the WordPress editor will no longer show when standard placement is disabled for the current post type
  • Add Kik share button
  • Add Skype share button
  • Add Viber share button
  • Add WeChat share button
  • Add Snapchat follow button

1.6.14

  • AMP (Accelerated Mobile Pages) support for share buttons in posts
  • PHP template code now accepts the icon_size argument

1.6.13

  • Fix automatic placement in post excerpts for certain themes & plugins that display post content on a page (thanks Agis)

1.6.12

  • Enable counters on floating share buttons when enabled for standard share buttons
  • Fix settings link for Multisite administrators (thanks Jan)
  • Simplify internal methods that automatically place standard share buttons
  • Automatic placement logic for WordPress excerpts has changed (“excerpt” usage & presentation varies widely among WordPress themes & plugins)
  • If needed, you can uncheck the “Display at the bottom of excerpts” placement option in AddToAny settings to disable button placement in a post’s excerpt/snippet/intro
  • Add width & height fields for custom icons in the Advanced Options section
  • Update admin slug

1.6.11

  • Update [addtoany] shortcode to accept specific share buttons
  • Add SMS share button
  • Add Telegram share button
  • Add Google Classroom share button
  • Add GitHub follow button
  • Update Instagram URL

1.6.10

  • Enable simpler syntax when using multiple share message templates
  • Override box shadow on buttons caused by CSS such as the default Twenty Sixteen theme’s
  • Replace deprecated WP function used for the local cache option

1.6.9

  • Fix decoding of HTML entities in shared titles when the default character encoding is not UTF-8
  • Update packaged languages
  • Use Romanian language pack (thanks Adrian Pop)
  • Use Swedish language pack (thanks Piani)

1.6.8

  • Universal share counter is now available
  • Tweet counters have been removed because Twitter no longer provides counts
  • Official buttons (Facebook Like, etc.) have been moved to the bottom of the available services list
  • Support WP-CLI v0.21.0+ (thanks Compute and Daniel Bachhuber)
  • Support bootstrapped WordPress
  • Support for other script loading methods

1.6.7

  • New Additional CSS box for AddToAny CSS customizations
  • Rename Additional Options box to Additional JavaScript box
  • Fix quotes and other special characters in shared titles
  • Simplify sections in settings
  • Update universal button to canonical endpoint
  • Use SSL for local cache updates
  • Support must-use plugin usage via a proxy PHP loader so add-to-any.php can remain in the add-to-any directory
  • Remove support for old method of moving add-to-any.php into mu-plugins for auto-loading

1.6.6

  • Harden local caching option (thanks pineappleclock)
  • Remove old warning message when template tags seem to be missing (thanks Tenebral, and theme authors everywhere)
  • Adjust gettext calls by switching to single quotes for the text domain argument

1.6.5

  • Update Google icon
  • Update Google+ icon
  • Update Tumblr logo
  • Remove NewsTrust

1.6.4

  • Fix placement option for custom post types to not inherit the placement option for regular posts (thanks Air)
  • Permit custom AddToAny button in floating share bars (thanks billsmithem)
  • Update widget docblocks so they are not mistaken for PHP 4 constructors

1.6.3

  • Fix Google+ follow button URL by removing the hardcoded + (thanks foxtucker)
    • Be sure to add the + to your ID if you have a Google+ custom URL.
  • Custom follow services can be added to the Follow widget using the A2A_FOLLOW_services filter hook (see the FAQ)
  • Harden CSS vertical alignment of custom icon images and Tweet button
  • Change admin heading to <h1> for improved accessibility

1.6.2

  • Support AJAX loading from admin-ajax.php
  • Update CSS to fix alignment issues in some themes with button images and the Facebook Like button
  • Add small follow icons (Instagram, YouTube, Vimeo, Flickr, Foursquare, Behance, and RSS PNGs)
  • Add Known
  • Remove obsoleted detection of page.js versus feed.js

1.6.1

  • Titles with special characters are sanitized differently
    • Using wp_json_encode (or json_encode) instead of esc_js for sanitizing JavaScript strings (thanks Nigel Fish)
  • Fix issue where the new feed button pointed to an example URL instead of the saved URL (thanks debij)
  • Resolve Follow widget notice when widget is empty in debug mode

1.6.0.1

  • Resolve notices in debug mode

1.6

  • Follow buttons have arrived for WordPress!
  • Includes Instagram, YouTube, Vimeo, Flickr, Foursquare, Behance, and RSS
  • Go to Appearance > Customize or Appearance > Widgets to setup your follow buttons

1.5.9

  • Accept custom icons of all file types such as png, svg, gif, jpg, webp, etc.
  • Remove empty width and height attributes on custom icons for W3C validation
  • AddToAny is certified as multilingual-ready by WPML

1.5.8

  • Toggle share buttons on custom post types in AddToAny settings
    • Supports WooCommerce Product post types
    • Supports bbPress Forum, Topic, Reply post types
  • Remove QQ (use Qzone)
  • Remove border from buttons that some themes add to links in posts

1.5.7

  • Custom color share buttons have arrived!
  • Remove Bookmark/Favorites (low browser support)
  • Remove duplicate Print service (old and redundant)
  • Remove FriendFeed
  • Remove Springpad

1.5.6

  • Bulgarian translation (by Artem Delik)
  • Update French translation to resolve missing placement options

1.5.5

  • Support multilingual sites using WPML, including Polylang

1.5.4

  • New optional sharing header to easily place a label above the default share buttons
    • Accepts HTML
  • Fix text width of counters where long numbers would break to a newline (thanks Chris)
  • Remove old Additional Options note in settings

1.5.3

  • Share event handling comes to the WordPress plugin!
  • This means you can track and modify the share with some JavaScripting
    • Track shares with Adobe Analytics, Clicky, KISSmetrics, Mixpanel, Piwik, Webtrends, Woopra, custom analytics, etc.
    • Google Analytics integration is automatic as always
    • Modify the shared URL
    • Modify the shared Title for services that accept a Title directly (i.e. Twitter, but not Facebook)
  • Update asynchronous loading to use new callbacks property
  • Add Renren
  • Remove blip, iwiw

1.5.2

  • Localize More button string
  • Improve interoperability among feed readers by removing official service buttons from feeds

1.5.1

  • Update Print icon
  • Update YouMob icon
  • Update Symbaloo icon
  • Update Qzone (QQ) icon
  • Remove allvoices, arto, bebo, funp, jumptags, khabbr, linkagogo, linkatopia, nowpublic, orkut, phonefavs, startaid, technotizie, wists, xerpi

1.5

  • Custom icon sizes (applied to AddToAny vector icons)
  • Fix custom standalone service icons when used with large icons
  • Add Kakao
  • Add Qzone
  • Add Yummly
  • Update Wykop icon

1.4.1

  • Update CSS to fix Facebook Like button verical aligment caused by Facebook’s inline styling change
  • Fix issue with shared titles containing unwanted HTML tags caused by some themes

1.4

  • New: Share counters in the same style for Facebook, Twitter, Pinterest, Linkedin and Reddit!
    • In Settings > AddToAny > Standalone Buttons, click the down arrow and toggle the “Show count” checkbox for any supported service
  • Floating buttons do not display share counts in this release
  • Update CSS to support AddToAny share counters

1.3.8.1

  • Add LINE icon (thanks tokyodev)
  • Add Mixi icon
  • Add Hacker News icon
  • Update Twitter icon

1.3.8

  • Floating share buttons are now disabled when “Show sharing buttons” is unchecked for a post/page
  • French translation (by Jacques Soulé)

1.3.7

  • New share menu design for the universal share button!
  • Floating share buttons code can be placed manually in theme files
    • Ideal for positioning the vertical share bar relative to site content
    • See the FAQ “How can I position a vertical floating share buttons bar relative to content?”
  • Fix JS console “undefined” notices during site previews (thanks Georgi Yankov)
  • Update universal sharing fallback to use HTTPS/SSL

1.3.6

  • Add LINE
  • Add Mixi
  • Add Hacker News
  • Update Twitter icon

1.3.5

  • Fix ‘small icon + text’ double-icon issue where the AddToAny Kit icon would appear in addition to packaged icon
  • Adjust default placement options for better control over the excerpts option

1.3.4

  • Fix large text-only icon where the AddToAny universal icon was appearing
  • Remove !important style declaration for small universal icon (thanks Tom Bryan)
  • Remove Mister Wong
  • Remove Yigg

1.3.3

  • Append trailing slash to custom icons location as necessary
  • Point to additional placement options and information
  • Remove old placement instructions for hardcoding
  • Remove old error reporting suppression in admin
  • Ukrainian translation (by Michael Yunat)

1.3.2

  • Avoid loading button script in admin, especially for visual editor plugins
  • Add addtoany_script_disabled hook to programmatically disable JavaScript

1.3.1

  • Floating share buttons are now responsive by default
  • Responsive breakpoints configurable in Floating options
  • “Use default CSS” must be enabled in Advanced Options for responsiveness

1.3.0.1

  • Apply universal sharing button toggle to floating buttons

1.3

  • Floating share buttons (major new feature!)
  • AddToAny Vertical Share Bar
  • AddToAny Horizontal Share Bar
  • Update admin interface
  • Update options

1.2.9.3

  • Prevent script output in feeds on some sites
  • Remove constants for old WP versions (below 2.6)

1.2.9.2

  • Fix transparency on AddToAny’s universal share icon
  • Add addtoany_sharing_disabled hook to programmatically disable sharing
  • Update Menu Options

1.2.9.1

  • Update template code
  • Update Advanced Options description
  • Fix button return notice for certain use cases

1.2.9

  • New Custom Icons option in the Advanced Options section
    • Use any icons at any location (media uploads directory, CDN, etc.)
    • This new method for using custom icons permits plugin updates that do not overwrite custom icons
  • Improve descriptions in settings

1.2.8.7

  • Fix code styling

1.2.8.6

  • Fix advanced caching option (most sites should not use this option)

1.2.8.5

  • For CSS customization, delineate between top and bottom in default sharing placement
  • Add .addtoany_content_top and .addtoany_content_top class names to .addtoany_share_save_container

1.2.8.4

  • Add Wanelo
  • Add WhatsApp

1.2.8.3

  • Set border to none on images for small icons and custom icons

1.2.8.2

  • Add pointer to settings in admin

1.2.8.1

  • Remove Favoriten
  • Remove Grono
  • Remove Hyves

1.2.8.0

  • Update Customize documentation links

1.2.7.9

  • Fix Print icon

1.2.7.8

  • Update Google+ Share button
  • Update Google +1 button
  • Update Delicious small icon
  • Update Diaspora small icon

1.2.7.7

  • Perfect compatibility with WordPress 3.8
  • Update email icon
  • Add confirm dialog to universal sharing toggle
  • Rename files and backend improvements for admin

1.2.7.6

  • Add option to disable universal sharing button
    • Disables the universal sharing button in automatic placement and ADDTOANY_SHARE_SAVE_KIT
    • The universal sharing button is still available via ADDTOANY_SHARE_SAVE_BUTTON (see FAQ)
  • Fix fieldset focusing in admin

1.2.7.5

  • Update Facebook Like button

1.2.7.4

  • Improve vertical alignment consistency of 3rd party buttons across themes

1.2.7.3

  • Harden AJAX detection

1.2.7.2

  • Support infinite scrolling of post content in themes
  • Support AJAX loading (on a post-load event)

1.2.7.1

  • Wrap addtoany shortcode with .addtoany_shortcode to enable specific styling
  • Add Flipboard
  • Update FAQ on hardcoding just the icons (both large and small icons)

1.2.7

  • Fix backwards compatibility with WordPress 2.8
    • Checkbox option to disable sharing buttons on each post and page
  • Add Baidu
  • Add Mendeley
  • Add Springpad
  • Update VK (Vkontakte)

1.2.6

  • Harden option to disable sharing buttons on each post and page
    • Extend option to custom post types

1.2.5

  • Large SVG icons are the default sharing format
  • Default standalone services are Facebook, Twitter, Google Plus
  • Note: If your sharing button suddenly changes (because you haven’t saved AddToAny settings yet), you can go back to the traditional sharing button in Settings > AddToAny. Choose “Small” for the Icon Size to see the traditional buttons, and in Standalone Buttons, click “Add/Remove Services” to deselect Facebook, Twitter, and Google Plus. Then click Save Changes to save your AddToAny Share Settings.
  • Popular services have been moved to the top of the Standalone Buttons list

1.2.4

  • Add Pinterest Pin It Button and options

1.2.3

  • Adjust CSS to improve icon and text alignment
  • Add FAQ for removing sharing button(s) from Archive pages (including Category, Tag, Author, Date, and Search pages)

1.2.2

  • Fix code formatting (indents, newlines)

1.2.1

  • Checkbox option to disable sharing buttons on each post and page

1.2

  • Large sharing buttons (major new feature!)
    • Scalable vector icons (SVG icons)
    • Mobile ready
    • Retina and high-PPI ready
    • Customizable through CSS code (effects, height & width, border-radius, and much more)
    • Support for older browsers (reverts gracefully to PNG)
    • Large icons are available for the most popular services right now. More services will roll out soon
  • Adjust CSS for large icons
  • Remove old Internet Explorer stylesheet for rollover opacity effect
  • Add Icon Size options to settings
  • Defaults and settings adjustments
  • Simplify labels in settings

1.1.6

  • Add App.net
  • Add Outlook.com (formerly Hotmail)
  • Update Pinterest icon
  • Update Box icon
  • Update Digg icon
  • Update Evernote icon
  • Update Instapaper icon
  • Update Yahoo! icon
  • Update Vkontakte (VK) icon
  • Remove unused icons

1.1.5

  • Fix debug mode notices when manually placed in a theme file that does not display a post/page
  • Sanitize active services output in admin

1.1.4

  • Fix admin panel display of 3rd party button options after saving changes
  • Fix debug mode notices in admin

1.1.3

  • Fix validation and semantics of script tag placement, particularly when button is contained in a list element

1.1.2

  • Fix settings page conflict with certain features of the Jetpack plugin and other plugins & themes
    • Fix saving of 3rd party button options (for Facebook Like, Twitter Tweet, Google +1)
    • Fix service sorting
  • Add Pocket (formerly Read It Later)
  • Remove Read It Later (now Pocket)
  • Remove HelloTxt
  • Update Slashdot icon

1.1.1

  • Add Pinboard
  • Add Buffer
  • Add Diaspora
  • Add Kindle It
  • Add Mail.Ru
  • Add Odnoklassniki
  • Update Pinterest icon
  • Update Google icon
  • Update Google+ icon
  • Remove Google Reader
  • Remove Posterous
  • Remove Sphere
  • Remove Tipd
  • Remove Vodpod

1.1

  • Fix settings page conflict with certain features of the Jetpack plugin and other plugins & themes
  • Fix settings page’s down arrow icon for advanced 3rd party buttons (Like, Tweet, etc.)
  • Update branding
  • Update buttons

1.0.3

  • Update Twitter logo

1.0.2

  • Add new Google+ Share button
  • Update FAQ for resizing advanced 3rd party buttons

1.0.1

  • Fix markup output for advanced 3rd party buttons when displayed as WordPress widget

1.0

  • After 5 years of development: Version One Point Oh!
  • Load advanced 3rd party buttons faster (Facebook Like, Twitter Tweet, Google +1)
    • Use A2A Kit for speed, extensibility, measurability
  • Adjust CSS to accommodate external resources for advanced 3rd party buttons
  • Lithuanian translation (by Vincent G.)

0.9

  • For all prior versions, see 1.6.12 or earlier