Lukenzo Posted September 16, 2017 Share Posted September 16, 2017 Hi. What I should change so that top categories tree would be shown in tablet mode as in mobile mode? I found where to edit so that button would be visible, but after clicking it categories doesn't show up. Mobile mode is working fine. What I am talking about : https://imgur.com/a/8L56j Link to comment Share on other sites More sharing options...
Lukenzo Posted September 17, 2017 Author Share Posted September 17, 2017 Could anyone explain what this means ? {function name="menu" nodes=[] depth=0 parent=null} Where I should search for these functions which are defined like that? What are those nodes and from where they come? Link to comment Share on other sites More sharing options...
catalin.pop Posted September 20, 2017 Share Posted September 20, 2017 If you're talking about hamburger menu, search for hidden-sm-down in prestashop17/themes/classic/assets/css/theme.css file you'll see something like @media (min-width:768px){.hidden-md-up{display:none!important[spam-filter] this means that if screen width > 768 hide the menu. Removing the display:none!important will not hide the menu. Link to comment Share on other sites More sharing options...
Lukenzo Posted September 21, 2017 Author Share Posted September 21, 2017 Yes I was talking about hamburger menu. But wouldn't that change md-sm screen sizes ? I will have different layouts for phone and tablet modes. It would be better to find where that menu is being rendered. I can't figure that out. Link to comment Share on other sites More sharing options...
catalin.pop Posted September 21, 2017 Share Posted September 21, 2017 Well I don't know what do you want to achieve, but I think the answers are in the css file. Basically if you want to have the same behavior on tablet as the one in mobile you just play with css @media . See what css is applied to mobile( lower width like 480px or 360px) and apply that to tablet (width : 768px +) Link to comment Share on other sites More sharing options...
Lukenzo Posted September 21, 2017 Author Share Posted September 21, 2017 I just want to show the same hamburger menu. but the header and etc are different. I managed show that menu button in tablet mode, but after clicking it nothing happens. Link to comment Share on other sites More sharing options...
catalin.pop Posted September 21, 2017 Share Posted September 21, 2017 Another alternative is to delete all css from @media (min-width:768px) and increase the min-widh from mobile to tablet width . This way you'll basically have a mobile and desktop mode (without tablet) - see @media (min-width:768px) and @media (min-width:992px) In other words mobile resolution rules will be for higher resolutions like tablets. Hope this makes sense to you. PS. make sure you backup your file first, just in case. Link to comment Share on other sites More sharing options...
Lukenzo Posted September 21, 2017 Author Share Posted September 21, 2017 This is not a good solution for me, because I need mobile, tablet and desktop versions. {function name="menu" nodes=[] depth=0 parent=null} Maybe you know what that 'nodes' is ? And where it is being created? I noticed that it is used in other modules too. But I dont get how this line of code works.. Link to comment Share on other sites More sharing options...
catalin.pop Posted September 21, 2017 Share Posted September 21, 2017 I don't know . in what file do you get that line? Link to comment Share on other sites More sharing options...
Lukenzo Posted September 23, 2017 Author Share Posted September 23, 2017 ps_mainmenu.tpl Link to comment Share on other sites More sharing options...
catalin.pop Posted September 23, 2017 Share Posted September 23, 2017 (edited) ps_mainmenu.tpl here you can find more documentation about smarty {function} https://www.smarty.net/docs/en/language.function.function.tpl Edited September 23, 2017 by catalin.pop (see edit history) Link to comment Share on other sites More sharing options...
Lukenzo Posted September 25, 2017 Author Share Posted September 25, 2017 Thank you. I thought it was some kind of prestashop function. Any more ideas where I should look? Link to comment Share on other sites More sharing options...
catalin.pop Posted September 25, 2017 Share Posted September 25, 2017 Like I said, based on what you asked the only changes need to be done are in theme.css file Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now