首页 wordpress插件

2019-06-20 村上桐树3,383

wordpress sns分享插件

我们在开发wordpress企业主题的时候,经常会碰到客户想给自己的页面添加SNS分享的功能,这里给大家推荐一款插件:AddToAny Share Buttons

插件介绍:

The AddToAny Share Buttons plugin for WordPress increases traffic & engagement by helping people share your posts and pages to any service. Services include Facebook, Twitter, Pinterest, WhatsApp, LinkedIn, Tumblr, Reddit, WeChat, and over 100 more sharing and social media sites & apps.

AddToAny is the home of universal sharing, and the AddToAny plugin is the most popular share plugin for WordPress, making sites social media ready since 2006.

推荐理由

1、免费插件

2、后台功能完善,支持图标与各SNS网站的分享设置

3、调用灵活,有别于很多插件自动生成代码,借用widget的形式,本插件支付PHP函数调用,可以在您想要显示的位置随意调用。

调用方式介绍

1、函数形式:

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

2、短代码形式

[addtoany]

使用起来非常灵活,如有需要,直接在插件市场搜索安装即可。

如果您在使用wordpress做外贸企业网站的时候遇到了问题,欢迎您随时联系我们,假如您想定制wordpress主题,我们很乐意为您提供相关方面的服务,我们官店地址是:http://51cms.taobao.com

会员评论:(0)

声明:本站所有主题/文章除标明原创外,均来自网络转载,版权归原作者所有,如果有侵犯到您的权益,请联系本站删除,谢谢!
©www.sbmzenith.com 2013-2022 All Rights Reserved.
豫ICP备15009393号