Question2answer Add Baidu Share button

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.