Shop Categories

X

Reply To: Offset when using anchor link

Home Forums Agama Pro Offset when using anchor link Reply To: Offset when using anchor link

#10008
Zex
Moderator

Hi,Martin!

I think I finally found the way to offset the anchor hashtag links.

The way I did this was as follows:

1. Before the actual anchor point I have inserted a blank space row in width of the header(change the height if needed), then gave it anchor ID.

https://prnt.sc/kdwqr3

2. then I Inserted a custom CSS as follows:

/*Offset Anchor*/
:target:before {
content:"";
display:block;
height:65px; 
margin:-65px 0 0;
}

http://prntscr.com/kdwqjc

I hope everything is fine right now.

I will continue tomorrow to solve the problem with the twitch in the menu.

Best Regards

  • This reply was modified 5 years, 9 months ago by Zex.