Conversation
supportCan’t get spy-offset to work. Am I mistaken to assume that it would scroll down another 20px with this shortcode? [toc content=”.entry-content” headers=”h2,h3″ spy-offset=”20″] Thanks Nijen
Hey, Spy offset is the offset used for adding an active class to the link when that heading is scrolled into view. There’s not actually a setting for what you want. Could maybe be done if the headings have padding or margin top?
maybe this will help: .entry-content h3 {margin-top: -96px;} .entry-content h3:before { content: ''; display: block; position: relative; width: 0; height: 96px;}
Hey, Spy offset is the offset used for adding an active class to the link when that heading is scrolled into view. There’s not actually a setting for what you want. Could maybe be done if the headings have padding or margin top?
maybe this will help: .entry-content h3 {margin-top: -96px;} .entry-content h3:before { content: ''; display: block; position: relative; width: 0; height: 96px;}