Digital experiences for all disciplines
New Landing › How can we help? › Cardinal › Anchor links issue in menu and on single page
New Landing › How can we help? › Cardinal › Anchor links issue in menu and on single page
- This topic has 17 replies, 4 voices, and was last updated 9 years by Swift Ideas – Ed.
-
Posted in: Cardinal
-
December 4, 2014 at 5:08 pm #133537
I’m using one #link within the nav and have made the area where I want the #link to go on the page within a Row asset, given it an ID and a name (although I am not using the one page navigation option). The link will smoothly scroll to that section once. However, if you then tap the nav link again, whilst on the same page, it goes too far below so it ends up being half way down a paragraph.
Additionally on the responsive menu in Firefox, the close button and header disappear when you click the #link in the navigation.
I have enclosed images. Any help would be very gratefully received!
Thanks
James
Attachments:
You must be logged in to view attached files.December 5, 2014 at 4:54 pm #133858Any thoughts on this, support?
Thanks
James
December 8, 2014 at 3:03 pm #134305Hi,
I guess you are using a different menu now(overlay menu). can you confirm?
I checked your page settings the only wrong thing I notice and corrected was the extra class in some assets you shouldn’t place the dot before the class name.
Will forward to the development team to check the Anchor links situation.
Thanks
-RuiDecember 8, 2014 at 5:38 pm #134370Hi Rui
Thanks for the response. And yes lets deal with one post rather than two. To confirm the issue has always been with the overlay menu and the mobile menu. Look forward to hearing from the developer chaps!
Thanks
James
December 8, 2014 at 10:37 pm #134418Hi @jamesh
Unfortunately that is because you’re using the full URL for the link – the browser takes over that functionality. If you use just the #about link as the URL, then it will scroll as expected.
If you use the above config, then the mobile menu will close as expected.
– Ed
May 26, 2015 at 4:06 pm #178558hej ed!
is there anything i can do when linking from another page?
i guess i have to provide a (full) URL plus anchor, haven’t i?for me the worst is a firefox behavior which catches the anchor to the top left even if the anchor is in nth column! in boxed layout content of any column before is pushed to invisible left.
any clue on that?
best,
s
May 27, 2015 at 3:10 pm #178885May 28, 2015 at 9:35 am #179051Sure Ed,
genereal topic: navigating to anchors with firefox
special: anchors in several cloumns (unfortunately content might have different hights and especially for responsive that anchor has to be in column x)
my experiences: works great with dante one page nav in all browsers; works as well with anchor links
problem: firefox top left(!) triggering when used in columns
demo link: /dante/shortcodes/columns/#third (just for the syntax)
screenshot: attachedthanks in advance for your support and every day thumb up for a great theme!
best,
s
Attachments:
You must be logged in to view attached files.May 28, 2015 at 9:45 am #179061maybe two more screenshots with larger screenshots for better coverage …
1. regular view (e.g. with one page nav)
2. miserable firefox anchor behaviourAttachments:
You must be logged in to view attached files.May 28, 2015 at 9:46 am #179064and yes the upload mixed it up. 😉
May 28, 2015 at 11:43 pm #179346Can you provide a link to the site so that I can check it out on my browser?
– Ed
May 29, 2015 at 6:41 am #179395here we go …
https://sys.helmixx.com/dante/shortcodes/columns/
i have inserted three more buttons with according anchor links …
e.g. https://sys.helmixx.com/dante/shortcodes/columns/#third
best,
s
May 29, 2015 at 7:46 am #179450For the scrolling, try adding
extraclass="smooth-scroll-link"
as a shortcode parameter – that will enable the link to smoothly scroll to the section.
This is the issue with firefox:
Error Line 773, Column 200: End tag div seen, but there were open elements.
…class="text">Second</span></a><span style="line-height: 1.5;"></div></span>
Check your content – looks like a stray div tag in there.
– Ed
May 29, 2015 at 7:52 am #179452now integrated.
yes, scrolling is smarter but unfortunately not the solution for to the firefox behavior. same as before.
s
May 29, 2015 at 8:07 am #179458sorry for the <span>.
i reckon the solution somewhere round here …
http://stackoverflow.com/questions/28813001/horizontal-scroll-not-working-in-chrome
with maybe an addition in code like …
http://stackoverflow.com/questions/6816033/scroll-horizontally-to-anchors-and-block-y-axis
but in the end i am a designer, not a programmer. 🙁 😉
best,
s
-
Posted in: Cardinal
You must be logged in and have valid license to reply to this topic.