禁用通过点击切换(图钉图标)来取消置顶主题的能力

也许有人会需要它

只需将代码插入主题组件的 CSS 部分

不要忘记将组件连接到你的主题

a.pin-toggle-button {
pointer-events: none !important;
cursor: not-allowed !important;
opacity: 0.6;
}

2 个赞

谢谢,添加得很好。我已经移除了你的引用,并在你的代码块前后添加了 [```] 移除方括号。你也可以选择使用方括号中的 “Code” 和 “/code”。

1 个赞