WebSite X5Help Center

 
Kees W.
Kees W.
User

Anchor link with sticky header  en

Автор: Kees W.
Просмотрено 1453, Подписчики 1, Размещенный 0  

Using a sticky header the anchor link would not work as expected.
The target section would be covered by the sticky header.

On internet there are several solutions, but have somebody a solution working in Website X5?

Размещено
3 Ответы - 1 Полезно - 1 Корректно
Esahc ..
Esahc ..
Moderator

Kees, you can get  clever and set offsets etc, but I simply use the feature (failure) to my advantage. I add a row before the section of the page I wish to go to and set it as the anchor in the full knowledge it will be obliterated by the sticky menu. I just treat is as a heading for the page section (which is helpful to those scrolling through the page)

My example (unpublished) site https://www.supadiverta.com.au/alt/

Читать больше
Размещено От Esahc ..
John S.
John S.
User

Hello Kees

I also mention this in the documentation ( the PDF ):

In X5 it is not possible to use anchors if you have a fixed header, unless you make some dummy-space
above the anchor.
This goes both for the fixed header, and when using the sticky menu.

I personally don't like this "workaround" but how you do it, is up to you.

Kind regards

John S.

Читать больше
Размещено От John S.