• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Persistant Header Respect Redirects

silence

Well-known member
#1
Is it possible if you have a persistant header so when you click the arrow to scroll to a users quote, the bar indents a bit as well so it won't cover up some of the content?
 

Jake Bunce

XenForo moderator
Staff member
#4
Then you probably need to add a space to the anchor so there is space between each post, at the top of which is the anchor.
 

EQnoble

Well-known member
#5
I came up with this before....it may need some adjusting to the numbers.
Code:
<script>
$(document).ready(function(){
  if ( document.location.href.indexOf('#post') > -1 ) {
    window.scrollBy(100,-105);
  }
});
</script>
it can be added to the end of page_container_js_head