0
点赞
收藏
分享

微信扫一扫

magento 添加facebook like 和google +1 按钮

曾宝月 2023-03-24 阅读 54


谷歌+1代码如下,

<div style="margin:-26px 0 0 288px;">
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
<g:plusone href="<?php echo Mage::helper('checkout/url')->getCurrentUrl();?>"></g:plusone>
</div>

fackbook like 代码如下:

<div style="margin:0px;" id="fb-root">
<script src="http://connect.facebook.net/en_US/all.js#appId=235512196464054&xfbml=1"></script>
<fb:like href="<?php echo Mage::helper('checkout/url')->getCurrentUrl();?>" send="true" layout="button_count" width="180" show_faces="true" font="">
</fb:like>
</div>

添加在你想要的位置就可以,不需要去安装插件!

 

 

举报

相关推荐

0 条评论