April 21, 2026

View as Markdown

Target the logo from custom scripts

customizationcomponents

<Fern.Logo /> now renders with a data-fern-logo attribute so custom scripts can target the logo with document.querySelector('#fern-header [data-fern-logo]'). Use this to rewrite the logo’s href on certain pages or modify other behavior.

Read the docs