picaflor-azul:
If you are using one of my templates that uses php moblie detect you can just create a separate header file for mobile or tablets that does not even call this menu ;-)
Thanks,
Anne
Thanks for the tip Anne. Would I need to add some code to the tpl_main_page such as If and else statements? At the moment I'm trying this; where tpl_header.php is the one you included with Westminster_new and tpl_header_desk.php is the one I've done with the mega menu.
if ( $detect->isMobile() ) {
$header_template = 'tpl_header.php';
$footer_template = 'tpl_footer.php';
$left_column_file = 'column_left.php';
$right_column_file = 'column_right.php';
$body_id = ($this_is_home_page) ? 'indexHome' : str_replace('_', '', $GET['main_page']);
}else{
$header_template = 'tpl_header_desk.php';
$footer_template = 'tpl_footer.php';
$left_column_file = 'column_left.php';
$right_column_file = 'column_right.php';
$body_id = ($this_is_home_page) ? 'indexHome' : str_replace('', '', $_GET['main_page']);
}
I'm not having much luck, and as a newb I'm not even sure if I'm doing the right thing. lol
rgeards
James