Because of the admin bar that shows for logged in users on my Wordpress site, 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;
divto be moved, but you just want the anchor's "fragment identifier" (that's what they're called as far as I know) to scroll lower because the offset breaks it in it's current form. - Nanne