Skip to content

搞英语 → 看世界

翻译英文优质信息和名人推特

Menu
  • 首页
  • 作者列表
  • 独立博客
  • 专业媒体
  • 名人推特
  • 邮件列表
  • 关于本站
Menu

修复了 Shark Toast 按钮显示两次署名的问题。

Posted on 2025-12-25

herman-1683556668-0.png

我之前发布过Shark Toast Button ,其中包含一段代码,可以向博客页脚添加署名信息。在付费博客上,由于升级后会多出一个<footer>节点,因此署名文本会显示两次。

旧的归属代码是:

 /** 署名 **/     
页脚::之前 {     
    展示: 堵塞;     
    内容: “Puckung 在 Flaticon 上发布的 Shark Toast 图标” ;     
}     

新的(已修复的)署名代码是:

 /** 署名 **/     
身体 > 页脚::之前 {     
    展示: 堵塞;     
    内容: “Puckung 在 Flaticon 上发布的 Shark Toast 图标” ;     
}     

这段CSS代码需要添加到你的博客主题中。你可以删除旧的署名代码,然后复制粘贴新的代码,或者直接在footer::before代码前面添加body > 。

付费博客的更佳归因:
注意:如果您拥有付费博客,则可以在页脚指令中添加 HTML 格式的署名信息。

在您的控制面板中,转到Settings -> Header & footer directives ,然后将以下内容粘贴到Footer directive:中:

 <span>鲨鱼吐司图标由<a href="https://www.flaticon.com/packs/shark-14520784?word=shark"> Puckung on Flaticon </a> </span>​​​     

接下来,您还需要从博客主题中删除署名 CSS 代码。


Bearblog 工具/技巧

原文: https://reedybear.bearblog.dev/fix-for-shark-toast-button-showing-attribution-twice/

本站文章系自动翻译,站长会周期检查,如果有不当内容,请点此留言,非常感谢。
  • Abhinav
  • Abigail Pain
  • Adam Fortuna
  • Alberto Gallego
  • Alex Wlchan
  • Alin Panaitiu
  • Anil Dash
  • Answer.AI
  • Arne Bahlo
  • Ben Carlson
  • Ben Kuhn
  • Bert Hubert
  • Big Technology
  • Bits about Money
  • Brandon Skerritt
  • Brian Krebs
  • ByteByteGo
  • Chip Huyen
  • Chips and Cheese
  • Christopher Butler
  • Colin Percival
  • Cool Infographics
  • Dan Sinker
  • David Walsh
  • Dmitry Dolzhenko
  • Dustin Curtis
  • eighty twenty
  • Elad Gil
  • Ellie Huxtable
  • Ethan Dalool
  • Ethan Marcotte
  • Exponential View
  • FAIL Blog
  • Founder Weekly
  • Geoffrey Huntley
  • Geoffrey Litt
  • Greg Mankiw
  • HeardThat Blog
  • Henrique Dias
  • Herman Martinus
  • Hypercritical
  • IEEE Spectrum
  • Investment Talk
  • Jaz
  • Jeff Geerling
  • Jonas Hietala
  • Josh Comeau
  • Lenny Rachitsky
  • Li Haoyi
  • Liz Danzico
  • Lou Plummer
  • Luke Wroblewski
  • Maggie Appleton
  • Matt Baer
  • Matt Stoller
  • Matthias Endler
  • Mert Bulan
  • Mind Matters
  • Mostly metrics
  • Naval Ravikant
  • News Letter
  • NextDraft
  • Non_Interactive
  • Not Boring
  • One Useful Thing
  • Phil Eaton
  • PostHog
  • Product Market Fit
  • Readwise
  • ReedyBear
  • Robert Heaton
  • Rohit Patel
  • Ruben Schade
  • Sage Economics
  • Sam Altman
  • Sam Rose
  • selfh.st
  • Shtetl-Optimized
  • Simon schreibt
  • Slashdot
  • Small Good Things
  • Steph Ango
  • Stephen Wolfram
  • Steve Blank
  • Taylor Troesh
  • Telegram Blog
  • The Macro Compass
  • The Pomp Letter
  • thesephist
  • Thinking Deep & Wide
  • Tim Kellogg
  • Understanding AI
  • Wes Kao
  • 英文媒体
  • 英文推特
  • 英文独立博客
©2025 搞英语 → 看世界 | Design: Newspaperly WordPress Theme