- Posts: 24
- Thank you received: 0
Top Page Button in 2.5 download
-
HarryBarnes
Inactive member -
Topic Author
- Member
-
Less
More
12 years 2 months ago #24373
by HarryBarnes
Top Page Button in 2.5 download was created 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
Can you please assist?
Thanks,
Denise
Please Log in to join the conversation.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 2 months ago #24381
by ivan.milic
Replied by ivan.milic on topic Top Page Button in 2.5 download
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.
-
HarryBarnes
Inactive member -
Topic Author
- Member
-
Less
More
- Posts: 24
- Thank you received: 0
12 years 2 months ago #24384
by HarryBarnes
Replied by HarryBarnes on topic Top Page Button in 2.5 download
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...
Thanks again...
Please Log in to join the conversation.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 2 months ago #24390
by ivan.milic
Replied by ivan.milic on topic Top Page Button in 2.5 download
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);
}
});
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.
-
HarryBarnes
Inactive member -
Topic Author
- Member
-
Less
More
- Posts: 24
- Thank you received: 0
12 years 2 months ago #24402
by HarryBarnes
Replied by HarryBarnes on topic Top Page Button in 2.5 download
Thank You!!! It is working...
Please Log in to join the conversation.
-
yiannisps
Inactive member -
- New Member
-
Less
More
- Thank you received: 0
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