offset anchor tag link

Support Area Forums Elite offset anchor tag link

Viewing 6 posts - 1 through 6 (of 6 total)
URL to the page in question: http://myfantasticgarden.com
  • Author
    Posts
  • #34982
    Mathias Vetter
    Participant

    Hi Bill,

    I hope you’re up and well. And sorry to bother you again.

    Is there an easy way to offset the anchor tag link (e.g. /#home-two) from the hero section button so the content won’t be partially hidden by the header?

    Thanks a lot for your help.
    Mat

    #34983
    Bill Robbins
    Moderator

    Hi Mat,

    Good question. At one time the theme had a script like that built in, but a change to WooCommerce made it no longer viable. You could try adding it back in this way. Install a plugin called Insert Headers and Footers (https://wordpress.org/plugins/insert-headers-and-footers/) and then add this code to it:


    (visit support site to see code).

    Once that’s done I believe you’ll be set up. Let me know if you run into trouble.

    Take care,
    Bill

    #34987
    Mathias Vetter
    Participant

    Wonderful Bill, this works like a charm! It won’t lead to conflicts with WooCommerce though?

    Thank you so much!
    Best,
    Mat

    #34988
    Bill Robbins
    Moderator

    Hi Mat,

    Good question. The trouble it has with WooCommerce is with the product tabs. This script keeps the tabs from working, so I would not use it if you’ll be needing the tabs on individual products.

    Take care,
    Bill

    #35002
    Mathias Vetter
    Participant

    Thank you very much, your help is appreciated!
    I’ll try it again once I set up WooCommerce and then decide whether to use the script or not.

    Take care,
    Mat

    #35004
    Bill Robbins
    Moderator

    Happy to help out Mat 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘offset anchor tag link’ is closed to new replies.