anchor on header position

GK User
Sat May 27, 2017 11:32 pm
Hey huys,

I'm redoing my anchors but i would like that the home page button did a scroll up to the header position instead of reloading the page.

However, In anchors, in template configuration, there's no header position to select.

How can i do this?

Thanks
User avatar
Senior Boarder

teitbite
Fri Jun 02, 2017 1:00 pm
Hi

You would need to make another Home menu element and hide the previous one. This new one would need to be an External Link type and called #home.

Next step would be to edit /layouts/default.php and right under the <body> starting tag You need to add:

Code: Select all
<div id="home"></div>
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.