offset anchor tag link
URL to the page in question:
http://myfantasticgarden.com
-
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
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
Wonderful Bill, this works like a charm! It won’t lead to conflicts with WooCommerce though?
Thank you so much!
Best,
Mat
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
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
Happy to help out Mat 🙂
- The topic ‘offset anchor tag link’ is closed to new replies.