ba609 Posted November 6, 2018 Posted November 6, 2018 Hello,I installed v. 1.7.4 and I would like to change the default top-menu. The sub-categories are horizontal and I do not like it, because the opening hides the logo.I'd like it to open vertically, similar to the drop down menu of 1.6, how can I do? There is a solution?If there is an identical discussion, please send me the link, I have not found anything.Hello and thank you in advance !!!! Share this post Link to post Share on other sites More sharing options...
razaro Posted November 15, 2018 Posted November 15, 2018 You will have to edit css a bit for changes. If you use default theme with no changes. File custom.css is in themes/classic/assets/css/ and add these lines .top-menu .sub-menu { box-shadow: 2px 1px 11px 2px rgba(0,0,0,.1); border: none; margin-left: .9375rem; width: inherit; min-width: inherit; z-index: 18; position: absolute; } #header .menu, #header .menu>ul>li { display: inline-block; position: relative; } .top-menu .sub-menu ul[data-depth="1"]>li { float: left; margin: 0 1.25rem; clear: both; } That should produce http://nimb.ws/rpdzFK, after saving and clearing PrestaShop cache. 2 1 Share this post Link to post Share on other sites More sharing options...
ba609 Posted November 25, 2018 Posted November 25, 2018 Thank you ! I test your solution. I'm using the classic theme. Share this post Link to post Share on other sites More sharing options...
ba609 Posted November 27, 2018 Posted November 27, 2018 Hi, the Razaro's code is ok , but i have little problem !!! Some categories don't automatic word wrap, see the attached. 🖐️ Share this post Link to post Share on other sites More sharing options...
razaro Posted November 27, 2018 Posted November 27, 2018 Can you share a link where are you trying that ? Share this post Link to post Share on other sites More sharing options...
ba609 Posted November 27, 2018 Posted November 27, 2018 (edited) Quote Can you share a link where are you trying that ? Hi Razaro, I send you in private. OK? 🖐️ Edited November 27, 2018 by ba609 (see edit history) Share this post Link to post Share on other sites More sharing options...
ba609 Posted November 27, 2018 Posted November 27, 2018 I have writing code mistake ! The solution of Razaro is correct. 👍 Share this post Link to post Share on other sites More sharing options...
andrew2019 Posted December 23, 2019 Posted December 23, 2019 Thanks it works Share this post Link to post Share on other sites More sharing options...
Juanhzc Posted April 10, 2020 Posted April 10, 2020 On 11/15/2018 at 2:59 PM, razaro said: You will have to edit css a bit for changes. If you use default theme with no changes. File custom.css is in themes/classic/assets/css/ and add these lines .top-menu .sub-menu { box-shadow: 2px 1px 11px 2px rgba(0,0,0,.1); border: none; margin-left: .9375rem; width: inherit; min-width: inherit; z-index: 18; position: absolute; } #header .menu, #header .menu>ul>li { display: inline-block; position: relative; } .top-menu .sub-menu ul[data-depth="1"]>li { float: left; margin: 0 1.25rem; clear: both; } That should produce http://nimb.ws/rpdzFK, after saving and clearing PrestaShop cache. It works great, but how do I hide the second level and show it when I mouse over example: https://webdesignerwall.com/demo/css3-dropdown-menu/ Share this post Link to post Share on other sites More sharing options...
Funieru Bogdan Posted April 26, 2020 Posted April 26, 2020 It works on 1.7.6.4, default theme. thanks ;) Share this post Link to post Share on other sites More sharing options...
khemia Posted April 29, 2020 Posted April 29, 2020 Hello, The custom.css should look exactly like this ?? Do I miss something ? Nothing changes in front end... what should I do ? I already cleared the cache. anything else ? .top-menu .sub-menu { box-shadow: 2px 1px 11px 2px rgba(0,0,0,.1); border: none; margin-left: .9375rem; width: inherit; min-width: inherit; z-index: 18; position: absolute; } #header .menu, #header .menu>ul>li { display: inline-block; position: relative; } .top-menu .sub-menu ul[data-depth="1"]>li { float: left; margin: 0 1.25rem; clear: both; } Share this post Link to post Share on other sites More sharing options...
Funieru Bogdan Posted April 30, 2020 Posted April 30, 2020 yes, also clear your cache, or disable it when you make modification to you css so that you see them in realtime. That's what i did, in the ccc section in Advance parameters -> Performance i had disabled the cached CSS so that i can see what i modify immediately. After done, reenable it, and all should be fine and dandy "Cheers Share this post Link to post Share on other sites More sharing options...
khemia Posted April 30, 2020 Posted April 30, 2020 Still no changes in front end... Share this post Link to post Share on other sites More sharing options...
WRSTRKE Posted May 25, 2020 Posted May 25, 2020 On 11/15/2018 at 5:59 PM, razaro said: You will have to edit css a bit for changes. If you use default theme with no changes. File custom.css is in themes/classic/assets/css/ and add these lines .top-menu .sub-menu { box-shadow: 2px 1px 11px 2px rgba(0,0,0,.1); border: none; margin-left: .9375rem; width: inherit; min-width: inherit; z-index: 18; position: absolute; } #header .menu, #header .menu>ul>li { display: inline-block; position: relative; } .top-menu .sub-menu ul[data-depth="1"]>li { float: left; margin: 0 1.25rem; clear: both; } That should produce http://nimb.ws/rpdzFK, after saving and clearing PrestaShop cache. Hi Razaro, can you help me? how can change the back color of the sub-menu? i want to set to black, like the horizontal menu Share this post Link to post Share on other sites More sharing options...
Funieru Bogdan Posted May 26, 2020 Posted May 26, 2020 Right Click in chrome inspect, on the menu space, and play with the css ( on the right ) to change / add color for the menu, after you get the right setting, copy it into the custom.css in the segment ( property ) that you need it to be in. I think in the .top-menu section should be the place to put it in. I don't use this anymore as i needed something else for my site. Cheers Share this post Link to post Share on other sites More sharing options...
Nexus85 Posted July 1, 2020 Posted July 1, 2020 On 4/11/2020 at 1:26 AM, Juanhzc said: It works great, but how do I hide the second level and show it when I mouse over example: https://webdesignerwall.com/demo/css3-dropdown-menu/ Is there a solution, this is exactly what i'm looking for. Share this post Link to post Share on other sites More sharing options...
xlinegraphics Posted July 7, 2020 Posted July 7, 2020 On 11/15/2018 at 3:59 PM, razaro said: You will have to edit css a bit for changes. If you use default theme with no changes. File custom.css is in themes/classic/assets/css/ and add these lines .top-menu .sub-menu { box-shadow: 2px 1px 11px 2px rgba(0,0,0,.1); border: none; margin-left: .9375rem; width: inherit; min-width: inherit; z-index: 18; position: absolute; } #header .menu, #header .menu>ul>li { display: inline-block; position: relative; } .top-menu .sub-menu ul[data-depth="1"]>li { float: left; margin: 0 1.25rem; clear: both; } That should produce http://nimb.ws/rpdzFK, after saving and clearing PrestaShop cache. Hi Razaro (or anyone else). I tried this code and it worked but there was one problem. My sub-menu appears far down on the screen. Do you know what would cause this? I used chrome to try to locate the issue but I am at a loss. Any help would be greatly appreciated! 😀 I reverted the site back to the original code for the time being but attached a screenshot of the issue. Share this post Link to post Share on other sites More sharing options...
Funieru Bogdan Posted July 8, 2020 Posted July 8, 2020 @xlinegraphics : In chrome for example, right click -> inspect on the dropdown, and adjust the css code accordingly. There might be something interfering with it, and thus you need to adjust it. cheers Share this post Link to post Share on other sites More sharing options...
skeccy Posted July 6, 2021 Posted July 6, 2021 @xlinegraphics Hi, were you able to solve the problem? I also encountered the same problem as you. Any solution? prestasho 1.7.7.5 Share this post Link to post Share on other sites More sharing options...
ComGrafPL Posted July 6, 2021 Posted July 6, 2021 2 hours ago, skeccy said: @xlinegraphics Hi, were you able to solve the problem? I also encountered the same problem as you. Any solution? prestasho 1.7.7.5 Post your website link. Maybe just hooks issue. Share this post Link to post Share on other sites More sharing options...
skeccy Posted July 8, 2021 Posted July 8, 2021 My link is www.sicilia-bedda.it but now i have disabled the code modifications. Share this post Link to post Share on other sites More sharing options...
SalvanaRik Posted January 4 Posted January 4 Hi all, same problem for me, the code works perfectly on first line of main menu, but sub-menu is far down on second line of main menu, and more far down on third line too. Someone to solve it ? Thanks Share this post Link to post 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