Hi DivaVocals
I've read through the thread a couple of times and I'm struggling to see the post that shows how to make the category dropdown into a two column display!? Would you be able to point me in the right direction? I realize you did this a while ago but if there's anyway you could help I'd be most appreciative.
Kind Regards
James
I believe what Anne meant to say is that Pure CSS Mega Menu mod was intended only for mouse-operated devices (desktops and laptops) and, unless modified for touch-screen devices, should be disabled or not loaded into touch-screen devices, especially those with small screens, (eg pads and mobiles). For touch-screen devices, you should use another menu-type, for example those gracefully supplied by Anne in her responsive templates.
Thanks for the reply.![]()
Yeah, I managed to implement it on the desktop and it looks great. I've also managed to hide it on all screen sizes up to tablets in the landscape position. I can hide it there too but it does keep flashing up as it traverses from portrait to landscape. I'm doing it through @media so I'm hoping I'll be able to sort it fully at a later date. Thanks once again for your input dw08gm, it really is very much appreciated!
Kind Regards
James.
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
Take a look at the includes/templates/override/templates/tpl_modules_mobile_categories_tabs.php file in the Westminster New package for syntax examples for how to call page specific elements.
The header is already set up for this. You can just not call the mega menu in the tpl_header_tablet.php or tpl_header_mobile.php files.
Thanks,
Anne
Bookmarks