How to add QQ share code to a finished website.
Published: 2014-09-24
Code:
<div><div class="bsPromo bsPromo2"></div><a title="Share to QQ空间"></a><a title="Share to 新浪微博"></a><a title="Share to 人人网"></a><a title="Share to 腾讯微博"></a><a title="Share to 网易微博"></a><a title="More platforms" class="bshare-more bshare-more-icon more-style-addthis"></a><span class="BSHARE_COUNT bshare-share-count" style="float: none;">2</span></div>
<script type="text/javascript" charset="utf-8" src="http://static.bshare.cn/b/buttonLite.js#style=-1&uuid=&pophcol=2&lang=zh"></script>
<script type="text/javascript" charset="utf-8" src="http://static.bshare.cn/b/bshareC0.js"></script>
<div id="bsBox" style="display: none;"><div>X</div><div><div>Select other platforms >></div><span style="margin-left:15px;">Share to</span><span></span></div><div><iframe name="bsFrame887" frameborder="0" scrolling="no" allowtransparency="true"></iframe></div><div id="bsMorePanel" style="display: none;"></div></div>
First method: Enter the website backend-Settings-Bottom information editing-click "Source code" and then add the sharing code at the very bottom:

Note: Selecting the "Simultaneously modify the bottom information of the entire site" setting will apply to all pages of the entire site.
Second method: Enter page layout mode-Custom content module-Add "html editing area" plugin-Source code-Add code:

After clicking OK, move and adjust the plugin to display it at any position on the page-Save and exit. The effect is as follows

A problem prone to occur: wwwroot\base\templates\header.htm file is edited and modified online via "File Management", changing the "keywords" and "description" items to fixed characters, causing the source code to be saved in gbk encoding, resulting in garbled page source code and garbled strings when obtaining sharing:

Solution: Use ftp to download header.htm locally, use Notepad editing tool-open the file-save the file as "utf-8" encoding, then use ftp to connect, upload and replace it.

After uploading and replacing, obtaining is normal:

```
