Sign Up |

Change vertical position/offset

(2 posts) (2 voices)
  1. ianmckendrick Posted 1 year ago #

    I have the Apture toolbar which appears at the top of my pages as the user scrolls down the page.
    This partially obscures the top of the Sharebar.
    Please can you tell me what I need to change so that the scrolling starts 40 pixels lower down the page so it sits nicely under my toolbar?

    You can see the problem here: http://tiptours.co.uk

    Many thanks
    Ian

  2. Monjurul Dolon Posted 1 year ago #

    You would have to change the actual sharebar.js file. Look for the last function called sharebar_scroll and update the number 10 to maybe 60 or 70, like so:

    	function sharebar_scroll() {
    		var p = jQuery(window).scrollTop();
    		var w = jQuery(window).width();
    		jQuery(sharebar).css('position',((p+60)>start) ? 'fixed' : 'absolute');
    		jQuery(sharebar).css('top',((p+60)>start) ? '60px' : '');
    	}
    

    I believe that should work, however I haven't tested it myself.


Reply

You must log in to post.

© Copyright 2010 DevGrow - Design. Develop. Grow. 20 queries. 0.33 seconds.