Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1380479

    Hi,

    With our website in development, this is my first shout out to support regarding the Enfold theme.

    We are experiencing an issue, which I have found previous posts relating to, but with no clear fix in our particular circumstances.

    The issue – with a sticky header, anchor links (which we have many) disappear behind the sticky header.

    Now losing the will to live with this particular issue, hope you can assist.

    Many thanks.

    Steve

    #1388005

    Hey Lupine-andy,

    Thank you for the inquiry.

    The menu containing the anchors is perfectly visible below the sticky header. Would you mind providing a screenshot of the issue? You can use imgur, savvyify or dropbox.

    Best regards,
    Ismael

    #1388053

    Misunderstanding here. Click on the anchor links .. and the anchors appear under the sticky header.

    #1388061

    Hi Ismael.

    Apologies. Please hold fire with this issue. A design decision is now being made which may affect the header height and any fix you undertake.

    I’ll come back to you once the header design has been finalised.

    Thank you,

    Steve

    • This reply was modified 1 year, 10 months ago by Lupine-andy.
    #1393841

    Hi Steve,

    We’ll leave this thread open then, just post back here once the header design is finalised.

    Best regards,
    Nikko

    #1394614

    Hey Nikko / Ishmael.

    Apologies for no response until now. We now have the header design finalised, so if you could proceed to look at the issue of anchor links, post-click, appearing under the sticky header, that would be appreciated. Example pages with anchors shown in previous private content.

    Kind regards,

    Steve

    #1394723

    Hi,
    Thank you for the link to your site, I have reviewed your two pages and found that you are using name="anchor" for your anchor links.
    The name attribute on the a element is obsolete. For quite some time now using the ID as the anchor link has been the standard. <h3 id="anchor">
    The name attribute will still work but the theme looks for ID anchor links and applies a offset to the scroll to account for the header, it also slows the scroll some so it’s not a hard jump to the element.
    I adjusted your /data-protection/ page because there was only 4 links and so you could see the result.
    So for example using your Individual Clients anchor, you had:
    <h3><a style="font-size: 16px; background-image: url('img/anchor.gif');" name="individuals"></a>Individual Clients</h3>
    but the correct method is:
    <h3 id="individuals"><a style="font-size: 16px; background-image: url('img/anchor.gif');"></a>Individual Clients</h3>
    Please clear your browser cache and review the page and apply the changes to your other pages.
    Also I don’t know why you are using background-image: url('img/anchor.gif'); on your anchors it is making your site give 404 errors, I imagine that you copied this code from somewhere and didn’t include the image to your site, I recommend removing all of these from your site.

    Best regards,
    Mike

    • This reply was modified 1 year, 9 months ago by Mike.
    #1396464

    Hi Mike,
    Apologies for the late response. Just a quick line to say thank you very much for your explanation regarding anchor links and the obsolete name attribute. Once we reviewed the code which had been copied and pasted from a previous version of the website, we realised the error, and everything was easily dealt with. My apologies again for taking this amount of time to respond. Your support rules! Thank you. :) Kind regards, Steve

    #1396482

    Hi,

    Glad to know that the issue has been resolved. Please feel free to open another thread if you have more questions about the theme.

    Have a nice day.

    Best regards,
    Ismael

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Anchor links appear behind sticky header’ is closed to new replies.