Link to external site in menu doesnt work

  • ikearns
    Inactive member
  • Topic Author
  • Member
  • Member
More
11 years 11 months ago #24675 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

Please Log in to join the conversation.

More
11 years 11 months ago #24689 by ivan.milic
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)

Please Log in to join the conversation.

  • ikearns
    Inactive member
  • Topic Author
  • Member
  • Member
More
11 years 11 months ago #24732 by ikearns
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

Please Log in to join the conversation.

Time to create page: 0.144 seconds
Powered by Kunena Forum