- Posts: 20
- Thank you received: 2
Link to external site in menu doesnt work
-
ikearns
Inactive member - Topic Author
- Member
Less
More
11 years 11 months ago #24675
by ikearns
Link to external site in menu doesnt work was created by ikearns
Added new menu item to an external site.
If I mouseover the menu link on the site then the URL is displayed however when I click on it then it doesnt open the page
Have sent you link to site - it is the link 'Gallery and Shop'.
regards
Ian
If I mouseover the menu link on the site then the URL is displayed however when I click on it then it doesnt open the page
Have sent you link to site - it is the link 'Gallery and Shop'.
regards
Ian
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
11 years 11 months ago #24689
by ivan.milic
Replied by ivan.milic on topic Link to external site in menu doesnt work
open :
/templates/hot_one_page/js/hot_onepage.js
see:
jQuery(".scroll, .mp_topmenu a").click(function(event){
event.preventDefault();
jQuery('html,body').animate({scrollTop:jQuery(this.hash).offset().top}, 500);
});
modify it like this:
jQuery(".scroll, .mp_topmenu a:not(.external)").click(function(event){
event.preventDefault();
try{
jQuery('html,body').animate({scrollTop:jQuery(this.hash).offset().top}, 500);
}catch(e){
jQuery('html,body').animate({scrollTop:0}, 500);
}
});
then in menu item add link class suffix: " external" (note first char is blank)
/templates/hot_one_page/js/hot_onepage.js
see:
jQuery(".scroll, .mp_topmenu a").click(function(event){
event.preventDefault();
jQuery('html,body').animate({scrollTop:jQuery(this.hash).offset().top}, 500);
});
modify it like this:
jQuery(".scroll, .mp_topmenu a:not(.external)").click(function(event){
event.preventDefault();
try{
jQuery('html,body').animate({scrollTop:jQuery(this.hash).offset().top}, 500);
}catch(e){
jQuery('html,body').animate({scrollTop:0}, 500);
}
});
then in menu item add link class suffix: " external" (note first char is blank)
Please Log in to join the conversation.
-
ikearns
Inactive member - Topic Author
- Member
Less
More
- Posts: 20
- Thank you received: 2
11 years 11 months ago #24732
by ikearns
Replied by ikearns on topic Link to external site in menu doesnt work
Thanks Ivan
Support and quick reply as always and very much appreciated.
Just to clarify for anyone else who uses this resolution, the ' external' tag goes in the field "Link CSS Style" under LINK TYPE OPTIONS
Support and quick reply as always and very much appreciated.
Just to clarify for anyone else who uses this resolution, the ' external' tag goes in the field "Link CSS Style" under LINK TYPE OPTIONS
Please Log in to join the conversation.
Time to create page: 0.144 seconds