New Menu (Layout)

More
10 years 3 months ago #41762 by ivan.milic
Replied by ivan.milic on topic New Menu (Layout)
Open

templates/hot_one_page/js/hot_onepage.js

this code:

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);
}
});

replace with:


jQuery( "a[href^='#']" ).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);
}
});
The following user(s) said Thank You: homeedition

Please Log in to join the conversation.

More
10 years 3 months ago #41765 by homeedition
Replied by homeedition on topic New Menu (Layout)
Thank you verry, verry much :)

Last question:
How i can use the TinyNav function for my own menu?
On litte screens i want to have the TinyNav-Menu on the right of the top.

Thanks :)

Please Log in to join the conversation.

More
10 years 3 months ago #41768 by ivan.milic
Replied by ivan.milic on topic New Menu (Layout)
Try this:

open

templates/hot_one_page/js/responsive_menu.js

do find/replace all

jQuery("ul.nav")

with

jQuery("ul.mnu_menuunten")

it may work , i do not guarantee, it is question it can work with that menu .
The following user(s) said Thank You: homeedition

Please Log in to join the conversation.

More
10 years 3 months ago #41776 by homeedition
Replied by homeedition on topic New Menu (Layout)
Thanks for your wonderful support :)

Is it possible to show the TinyNav-Menu in a seperate div-layer?
In moment the TinyNav-Menu show in the same div-layer as the mainmenu (menuunten).

I will show the TinyNav-Menu in a new layer fixed on top of the page, if possible.

Thank you very much :)

Please Log in to join the conversation.

More
10 years 3 months ago #41783 by ivan.milic
Replied by ivan.milic on topic New Menu (Layout)
Try to put jquery code at end of function menutransform() (in templates/hot_one_page/js/responsive_menu.js)

jquery code that moves it to other location.

something like

jQuery('#menu_01_oben SELECT.tinynav').appendTo('#destionation_container_id');
The following user(s) said Thank You: homeedition

Please Log in to join the conversation.

More
10 years 3 months ago #41786 by homeedition
Replied by homeedition on topic New Menu (Layout)
PERFECT - IT WORKS!!!! :) :)

Very, very thanks for your support and help!!!

Please Log in to join the conversation.

Time to create page: 0.132 seconds
Powered by Kunena Forum