> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt.

## 从自定义脚本定位 logo

`<Fern.Logo />` 现在渲染时带有 `data-fern-logo` 属性，因此自定义脚本可以使用 `document.querySelector('#fern-header [data-fern-logo]')` 定位 logo。使用它在特定页面重写 logo 的 `href` 或修改其他行为。

阅读文档