XF 2.0 How does XF2 deal with the sticky header and anchors?

Jaxel

Well-known member
HTML anchor links put the anchor at the top of the viewport. But if you are using a sticky header, it ends up being behind the header.

How does XF2 rectify this?
 
Anchors shouldn’t relate to the element you want to snap to. Instead look at how we use u-anchorTarget elements.
 
Like any other anchor. You give them an ID e.g. post-1234 and the links which jump to those just have #post-1234 appended to them.
 
Top Bottom