Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #80603

    Hi Sakin,

    Is there a way to use the floating scroll in my wesbite in such a way that if you click on the logo and/or a button in the menu bar that they will float you up to the top of the page?

    http://www.trendfly.org/

    #80613
    Mahesh
    Keymaster

    Hi @matthewseanmclachlan

    Yes, this can be done and in a very simple way. Go to “Dashboard=> Appearance=> Theme Options=> Web Master Tools=> Header Footer Codes=> Code to display on Footer” box and add the following code:

    <script>
    jQuery('#top-logo a').click(function () {
    		jQuery('body,html').animate({
    			scrollTop: 1
    		}, 800);
    		return false;
    	});
    </script>

    Let me know if this fixes your issue.
    Thanks.

    #80741

    Mahesh,

    This worked perfectly.

    Thanks!
    Matt

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Making The Logo and Button in Menu Take You To The Top Of Home Page’ is closed to new replies.