Hello
I have had a anchor in a page and a link to this anchor at the top of the page.
When I click this link, yes the smoothscrool works but do not go at the exact position of the anchor
Maybe something to change in the $.fn.avia_smoothscroll = function(apply_to_container) ?
thanks
Hi pako69!
You can try to use the “Color Section” and the “Section ID” option: http://kriesi.at/documentation/enfold/wp-content/uploads/sites/2/2013/12/color-section-ID.png to set a target for the smooth scroll effect. Also see: http://kriesi.at/documentation/enfold/add-anchors-to-your-page-for-single-page-navigation/ . The anchor element itself is probably too small for a proper viewport adjustment.
Best regards,
Peter
Hi!
You shouldn’t be using <a name="ecosystem">
as it isn’t supported in html5. I’m not actually getting an issue on the page with the link/location of the anchor but that could be related.
Regards,
Devin
Hello Devin
Anchor are not html? I was not aware about that… Regardless, everybody use anchor, isn’t it ?
“I’m not actually getting an issue on the page with the link/location of the anchor but that could be related.”
I do not understand… You are saying that it worls for you?
Hey!
Try to place the headline inside the a href element:
<a name="ecosystem">L’écosystème SQLI</a>
The height of the element must be 1px or more. Otherwise the smoothscroll animation doesn’t work.
Regards,
Peter
Regarding its usage: http://www.w3.org/TR/html5/obsolete.html
For example on the kriesi.at home page the “our themes” anchor link code looks like this:
<a href="#our-themes" class="avia-double-button avia-double-button-2">Learn More</a>