[Plugin: Better Anchor Links] offsetting hash by 28px to accommodate admin bar for logged in users
-
Because of the admin bar that shows for logged in users, hash links don’t work as I’d like them to, i.e. they work as they should, but the top of the hash div is obscured by the WordPress admin bar. So I am wondering if there is a way that, for logged in users, the position of all hashes can be offset by 28px, so that they show up correctly?
Presumably, if there is a script that can do this I will need to add it to my functions.php file and wrap it in:
if (is_user_logged_in()) : [script here] endif;
Thanks,
Nick
https://www.ads-software.com/extend/plugins/better-anchor-links/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: Better Anchor Links] offsetting hash by 28px to accommodate admin bar for logged in users’ is closed to new replies.