Modifying Baidu Xiongzhang Follow Button for Fans

Machine-translated (anthropic, claude-haiku-5-5) from the Chinese original. Read the original in 中文

Contents

Foreword

Hehehe, I'm here. The guys in the group said they didn't know how to add the Xiongzhang (Baidu "Bear Paw") follow page, so I came to write this post. That's all there is to it!

Steps

  1. Come on, first find your theme file

/www/wwwroot/usr/themes/handsome

It looks roughly like this

  1. Next, find the header.php file inside the component folder
熊掌号代码引入
Integrating the Baidu Xiongzhang (Bear Palm) Code

Add the snippet above in the appropriate place

html
   <!--熊掌号js引入-->
   <script src="//msite.baidu.com/sdk/c.js?appid=你的熊掌号ID"></script>

Remember to save it

  1. Then find the post.php file in the handsome directory
熊掌号代码2
Baidu Xiongzhang Code 2

Add the corresponding code at the position shown in the image

php
 <!--熊掌号div引入-->
          <div style="padding-left: 20px; padding-right: 20px;">
    <script>cambrian.render('tail')</script>
          </div>

Publish a new article and you'll be able to see it

demo:

demo
demo

Comments