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 platform >></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>
Method 1: Enter the website backend-Settings-Footer information editing-Click "Source Code" and add the sharing code to the bottom:

Note: Selecting the "Also modify the whole site's footer information" setting will apply to all pages of the entire site.
Method 2: 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 anywhere on the page, then-save and exit. The effect is as follows

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

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

After uploading and replacing, retrieval works normally:

