html thinkphp我想在自己的网页加入分享到微信连接?

html thinkphp我想在自己的网页加入分享到微信连接?,第1张

据了解thinkPHP使用模板引擎 ThinkTemplate

你可以给你的模板文件的footer中在你相应的位置中嵌入分享代码:

例如以下是第三方提供的困蚂插件

<!-- JiaThis Button BEGIN --><div id="ckepop">

<span class="jiathis_txt">分享到:</span>

<a class="jiathis_button_weixin">微信</a> 

<a href="http://www.jiathis.com/share"  class="jiathis jiathis_txt jiathis_separator jtico jtico_jiathis" target="_blank">更多</a>

<a class="jiathis_counter_style"></a> </div> 誉漏

<script type="text/javascript" src="http://v3.jiathis.com/code/jia.js?uid=1" charset="utf-8"></script>

</div> <!-- JiaThis Button END -->

更新网页查庆尺烂看效果

网站添加微信二维码的方式如下,例如以wp博客为销雀运例:

1、首先打开博客登陆网站后台;

2、在把二维码图片文件,修为为weixin.png二维码图片通过FTP上传到服务器空间根目录下。

3、登陆后台之后找到模板页面设置这一个区域:wp博客后台是找到外观里面的主题岁销选项;

4、在网站的主题点击进入之后选择编辑;根据需求,是需要添加二维码是需要添加头部还是网站底部,如果是头部找到header.php文件,如果是添加到底部就找到footer.php文件夹。例如添加底部:

5、详细代码如下:

<div class="right xs-hidden">

<?php wp_nav_menu( array( 'theme_location' => 'footer-nav', 'fallback_cb' => 'footer_menu','menu_class'=>'亏梁footer-menu' ,'container' => 'nav','container_class' => 'footer-nav') ) ?>

<div class="us right">

<a class="weixin" href="<?php bloginfo('template_url') ?>

6、网站添加二维码效果如下,点击一下就可以展现。


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/bake/11976350.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-20
下一篇 2023-05-20

发表评论

登录后才能评论

评论列表(0条)

保存