Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加AddThis社交分享功能 #660

Merged
merged 2 commits into from Feb 10, 2016
Merged

添加AddThis社交分享功能 #660

merged 2 commits into from Feb 10, 2016

Conversation

@hackjutsu
Copy link
Contributor

hackjutsu commented Feb 10, 2016

添加AddThis理由:

  1. 更为清爽的设计风格(个人认为好于JiaThis)
  2. 除了Facebook、Twitter、Google+、Linkedin等海外常用的分享外,还包括微博在内的上百分享选择
  3. Mobile Friendly
  4. Freemium

注册AddThis方法

  1. 在网站AddThis上注册账号。可以使用Google/Facebook/Twitter账号进行第三方登陆。
  2. 从下面菜单获得AddThis id:More.. --> General --> ID。具体ID获得方式可以参考截图
  3. 在主题_config.yml中,把#Share下的
    #add_this_id
    取消注释,改为
    add_this_id: put_your_add_this_id_here

参考网站
我的博客加入了AddThis分享功能。点击进入任何一个post,把鼠标放到屏幕左侧即滑出分享按钮(按钮滑出的位置可以在AddThis网站调整)。当屏幕缩小到移动设备大小时,或者在手机上看时,按钮显示在屏幕下方。

我使用的主题版本是去年十月左右fork出去的,所以看起来有点不同。我用最新的主题测试过,没有问题:)

iissnan added a commit that referenced this pull request Feb 10, 2016
添加AddThis社交分享功能
@iissnan iissnan merged commit 15fe2f0 into iissnan:master Feb 10, 2016
1 check passed
1 check passed
hound No violations found. Woof!
@iissnan
Copy link
Owner

iissnan commented Feb 10, 2016

Thanks! 👍

@iissnan iissnan added this to the v5.0.0 milestone Mar 21, 2016
@iissnan iissnan removed the Docs label May 9, 2016
@Albert-Gao
Copy link
Contributor

Albert-Gao commented Aug 22, 2016

Hi, AddThis 配置以后显示不出来,用的master branch

@viniarck
Copy link

viniarck commented Nov 5, 2016

Awesome! Thanks a lot!

@cyang812
Copy link

cyang812 commented May 28, 2017

你好,配置之后显示不出来。请问ID哪里包含有ra吗?

@morganwu277
Copy link

morganwu277 commented Jun 7, 2017

一样遇到了配置后显示不出来的问题。。我的next 版本是5.1.1

@Albert-Gao
Copy link
Contributor

Albert-Gao commented Jun 7, 2017

  1. 需要去addthis打开你的InLine ShareButton, Tools -> WEBSITE TOOLS -> 点右侧的那个开关激活

  2. 不过还是有点问题,我按照官方的要求改了模板,但是Chrome里面还是不出来,Safari里面出来了。不过我说Chrome里面没出来,可能是因为很久没更新版本了,我用的老版本,还没merge最新的版本

  3. 官方的推荐方法是,那个js放在< /body >的前面,然后< div >随便放,只要在< body >范围里就行

大家可以试试,good luck :)

@morganwu277
Copy link

morganwu277 commented Jun 8, 2017

@Mr-Binary 多谢!可以了!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

6 participants
You can’t perform that action at this time.