Top Page Button in 2.5 download

More
12 years 2 months ago #24373 by HarryBarnes
Hi again...Does the top button work in version 2.5? When I clicked on it in the demo, it is fine...now that I am trying to use it in the 2.5 version, nothing happens.

Can you please assist?



Thanks,
Denise

Please Log in to join the conversation.

More
12 years 2 months ago #24381 by ivan.milic
if you have some script error it make break js code used for that. What was the link so we could see?

Please Log in to join the conversation.

More
12 years 2 months ago #24384 by HarryBarnes
www.thekenaangroup.com/VerosInterior When I click on the up arrow on each page, it does not take me to the top of the page.

Thanks again...

Please Log in to join the conversation.

More
12 years 2 months ago #24390 by ivan.milic
Open:

templates/hot_one_page/js/hot_onepage.js


find this:

jQuery(".scroll, .mp_topmenu a").click(function(event){
event.preventDefault();
jQuery('html,body').animate({scrollTop:jQuery(this.hash).offset().top}, 500);
});

replace with:

jQuery(".scroll, .mp_topmenu a").click(function(event){
if(jQuery(this.hash)[0]){
event.preventDefault();
jQuery('html,body').animate({scrollTop:jQuery(this.hash).offset().top}, 500);
}
});

Please Log in to join the conversation.

More
12 years 2 months ago #24402 by HarryBarnes
Thank You!!! It is working...

Please Log in to join the conversation.

  • yiannisps
    Inactive member
  • New Member
  • New Member
More
12 years 2 months ago #24706 by yiannisps
Replied by yiannisps on topic Top Page Button in 2.5 download
This solution worked for me but now i have not the effects. It just appears the top page without that kind of scrolling.

Please Log in to join the conversation.

Time to create page: 0.082 seconds
Powered by Kunena Forum