Open Source programQuestion2answerthe template for the program andWordPressthe template is very different,Question2answerThe template folder is not modified directly when you modify the templateQa-themethe file, but the system files need to be modified. Of courseQuestion2answerYou can also add the Baidu share button without modifying the template file.
1. Add Baidu share to Sidebar
Sidebar add Baidu Share button is the most simple and convenient, just to enter the question2answer Management Center – layout – all pages at the bottom of the custom content (support HTML): add Baidu share - float window. This way, the share button on the sidebar is added to complete.
2. Add Baidu share to the bottom of the question
Here you need to modify the system file, open the qa-include/qa-theme-base.php file, line 1834
1 |
$this ->output (' </DIV> <!--END qa-a-form--', '); |
Revision changed to
1 |
$this ->output (' </DIV> Baidu share button code <!--END qa-a-form--', '); |
Specifically, you can also go to www.androidren.com to see the effect after the addition.
"Tips" Remember Baidu share button code inside the single quotation mark ' need to escape.
Baidu share the code, on Baidu share official website http://share.baidu.com registration, and then obtain.
Question2answer Add Baidu Share button