转发按钮小程序 不用按钮_如何在博客上添加转发按钮

转发按钮小程序 不用按钮

Twitter has seen exponential growth in the past year which is the reason why more and more bloggers are now sharing their stories on twitter. If you haven’t seen one of the cool Retweet buttons on some of most famous blogs, then you are missing out.

Twitter在过去一年中呈指数增长,这就是越来越多的博客作者现在在Twitter上分享其故事的原因。 如果您没有在一些最著名的博客上看到酷炫的Retweet按钮之一,那么您就错过了。

In this article, we will show you how to add a Retweet Button in all of your posts, so your audience can Tweet your stories with one click.

在本文中,我们将向您展示如何在所有帖子中添加转发按钮,以便您的听众一键即可发布您的故事。

There are two ways to add this button in your site. First is through the WordPress Plugin called Tweetmeme

有两种方法可以在您的网站中添加此按钮。 首先是通过名为Tweetmeme的WordPress插件

Upload the plugin into /wp-content/plugins/ directory.

将插件上传到/ wp-content / plugins /目录。

Activate it, and then visit the settings page.

激活它,然后访问设置页面。

You can change the RT @tweetmeme which is default to RT @yourusername. In our case it would be RT @wpbeginner.

您可以更改RT @tweetmeme,默认为RT @您的用户名。 在我们的情况下,它将是RT @wpbeginner。

This plugin also allows you to choose the location of the button placement. Top Right Corner, Top Left Corner, and so on.

该插件还允许您选择按钮放置的位置。 右上角,左上角等。

The second way is to do it by placing the codes in your templates file of your choosing at the location that you desire.

第二种方法是通过将代码放置在所需位置的所选模板文件中来实现。

For the Large Button:

对于大按钮:

<script type="text/javascript">
tweetmeme_source = 'wpbeginner';
</script>
<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"> </script>

<script type =“ text / javascript”>
tweetmeme_source ='wpbeginner';
</ script>
<script type =“ text / javascript” src =“ http://tweetmeme.com/i/scripts/button.js”> </ script>

For the Compact Button:

对于紧凑按钮:

<script type='text/javascript'>
tweetmeme_style = "compact";
tweetmeme_source = 'wpbeginner';
</script>

<script type ='text / javascript'>
tweetmeme_style =“紧凑”;
tweetmeme_source ='wpbeginner';
</ script>

Remember to change wpbeginner to your twitter name. Now you have a Retweet button on your posts. You are on your way to getting more exposure. Follow us on Twitter.

记住将wpbeginner更改为您的Twitter名称。 现在,您的帖子上有一个“转发”按钮。 您正在努力获得更多曝光率。 在Twitter上关注我们

翻译自: https://www.wpbeginner.com/wp-tutorials/how-to-add-a-retweet-button-on-your-blog/

转发按钮小程序 不用按钮

相关推荐

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
©️2022 CSDN 皮肤主题:编程工作室 设计师:CSDN官方博客 返回首页
评论
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值