Your address will show here +12 34 56 78
#28853

Joakim

ok, I found the menu in control.js.

I know the ID of the mobile menu so basicly I should be able to place a static ID instead of getting the primary menu to show.

It would be quite good if you in future releases differ between the mobile and real navigation.

Please advice me what to change:

Code:
// Create the dropdown base
$(‘<select id=”select_menu” />’).appendTo(‘.header_control’);

// Create default option ‘Go to…’
$(‘<option />’, {
‘selected’: ‘selected’,
‘value’: ”,
‘text’: ‘Navigera till…’
}).appendTo(‘#branding #select_menu’);

// Populate dropdown with menu items from main menu
$(‘#access a’).each(function() {
var el = $(this);

if ($(el).parents(‘.sub-menu .sub-menu’).length >= 1) {
$(‘<option />’, {
‘value’: el.attr(‘href’),
‘text’: ‘– ‘ + el.text()
}).appendTo(‘#branding #select_menu’);
}
else if ($(el).parents(‘.sub-menu’).length >= 1) {
$(‘<option />’, {
‘value’: el.attr(‘href’),
‘text’: ‘- ‘ + el.text()
}).appendTo(‘#branding #select_menu’);
}
else {
$(‘<option />’, {
‘value’: el.attr(‘href’),
‘text’: el.text()
}).appendTo(‘#branding #select_menu’);
}
});

$(‘#branding select’).change(function() {
window.location = $(this).find(‘option:selected’).val();
});

if ($(‘.gmap-menu’).height() < 50) {
$(‘.gmap-menu’).css(‘bottom’, ’34px’);
}