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()) :