Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Creating an anchor link from the header to the body on the same page

Started by Dorian Jepsen 3 years ago · 2 replies · 797 views
3 years ago

I'm making a single-page site and I want the links in the header to jump/go to a specific part of the page. I can't figure out how to do it. In this instance, I would like the "Contact" link to scroll down to the "Get in touch. Join the club!" part of the page.

I know how to do this with HTML, but the Grav menu and markdown are stumping me.

3 years ago

@Alpha,

Inline anchors will be created for you out of the box...

last edited 10/26/23 by pamtbaau
3 years ago

And also have a look at this:
/forum/themes-styling/quark-mobile-menu-as-the-modular-page-menu-t1132

👍 1

Suggested topics

Topic Participants Replies Views Activity
General · by Andy Miller, 1 week ago
0 121 1 week ago
General · by lynbor, 1 month ago
3 447 2 weeks ago
General · by lynbor, 3 weeks ago
7 577 2 weeks ago
General · by Harry, 2 weeks ago
0 167 2 weeks ago
General · by Old Man Umby, 1 month ago
2 313 4 weeks ago