How to add a share button or floating window to a wordpress blog

Source: Internet
Author: User
Tags wordpress blog

Adding the Baidu sharing button allows users to share their own content. As Baidu shares official information, it can bring more traffic to the website and the sharing times will be considered by Baidu as a highly popular webpage, not only is there an arrow and number of times shared in the lower right corner of Baidu search results, but it is also good for the ranking of webpages, of course, the premise must be established on the web page, which is indeed a high-quality content that is worthy of active sharing by users.

Baidu, which we often see on other websites, shares a position installed at the beginning or end of an article, and a position suspended on the left or right of the website, the former is a button method, while the latter is a floating window mode with the mouse expanding. For example, Liu Zhenyi's blog is basically installed in these two positions, as shown in the figure below:


 

The adding method is very simple. Next we will introduce the adding methods for these two locations.


1. Add the Baidu sharing floating window button on the side

1. Visit the Baidu sharing website, select the floating window style, as well as the height and position of the floating window, and copy the code in the right box;

2. Open the header. Php file, paste the copied code to the following content of the <body> tag, and save it.



2. Add the Baidu share button to the header or bottom of the article

1. Visit the Baidu sharing official website, select a style, and copy the code;

2. Open single. php on the article page and copy the code to the corresponding location. The specific location varies depending on the header or bottom. You can find the keyword on the page to analyze the structure of the article page and paste it.

 

The entire process is very simple. Once and for all, you only need to copy and paste it once. All pages will have these features. If you have any questions, please leave a message.

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.