Auto open menu on mobile device
First of all: I am so sorry about my bad english!
I need a little help on blocktopdropdownmenu. I want to show categories without clicking any button( for mobile theme only) like the photo attached. I tried to edit blocktopdropdownmenu.tpl and blocktopdropdownmenu.js but my idea dose`nt work.
Also, i would like to tell me if it is possbile to move the home slider photos after "search" block but before cart block (only on mobile phone). If it is what file i have to edit, please send me some tips becouse i search this for about 2 days and i don`t find nothing...
Auto open menu on mobile device
Hello
homeslider
- just activate homeslider module for mobile device in shop back office: https://i.imgur.com/okWfHy4.png
- go to /themes/your-theme/modules/blocktopmenu/blocktopmenu.tpl and at the begining paste code:
menu
at the end of /themes/your-theme/modules/blocktopmenu/blocktopmenu.tpl paste:
homeslider
- just activate homeslider module for mobile device in shop back office: https://i.imgur.com/okWfHy4.png
- go to /themes/your-theme/modules/blocktopmenu/blocktopmenu.tpl and at the begining paste code:
{if Context::getContext()->getMobileDevice() == true}{hook h='displayTopColumn' mod='homeslider'}{/if}
menu
at the end of /themes/your-theme/modules/blocktopmenu/blocktopmenu.tpl paste:
{if Context::getContext()->getMobileDevice() == true}
<script>
$(document).ready(function(){
$('#block_top_menu div.cat-title').click();
});
</script>
{/if}
Auto open menu on mobile device
Reviewed by VEKIA
on
Wednesday, February 06, 2019
Rating:
No comments