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
- Come on, first find your theme file
/www/wwwroot/usr/themes/handsome
It looks roughly like this
- Next, find the header.php file inside the
componentfolder

Add the snippet above in the appropriate place
<!--熊掌号js引入-->
<script src="//msite.baidu.com/sdk/c.js?appid=你的熊掌号ID"></script>Remember to save it
- Then find the post.php file in the handsome directory

Add the corresponding code at the position shown in the image
<!--熊掌号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:

Comments