ba609 Posted November 6, 2018 Share 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 !!!! Link to comment Share on other sites More sharing options...
razaro Posted November 15, 2018 Share 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. 3 1 Link to comment Share on other sites More sharing options...
ba609 Posted November 25, 2018 Author Share Posted November 25, 2018 Thank you ! I test your solution. I'm using the classic theme. Link to comment Share on other sites More sharing options...
ba609 Posted November 27, 2018 Author Share 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. 🖐️ Link to comment Share on other sites More sharing options...
razaro Posted November 27, 2018 Share Posted November 27, 2018 Can you share a link where are you trying that ? Link to comment Share on other sites More sharing options...
ba609 Posted November 27, 2018 Author Share 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) Link to comment Share on other sites More sharing options...
ba609 Posted November 27, 2018 Author Share Posted November 27, 2018 I have writing code mistake ! The solution of Razaro is correct. 👍 Link to comment Share on other sites More sharing options...
andrew2019 Posted December 23, 2019 Share Posted December 23, 2019 Thanks it works Link to comment Share on other sites More sharing options...
Juanhzc Posted April 10, 2020 Share 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/ Link to comment Share on other sites More sharing options...
Funieru Bogdan Posted April 26, 2020 Share Posted April 26, 2020 It works on 1.7.6.4, default theme. thanks ;) Link to comment Share on other sites More sharing options...
khemia Posted April 29, 2020 Share 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; } Link to comment Share on other sites More sharing options...
Funieru Bogdan Posted April 30, 2020 Share 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 Link to comment Share on other sites More sharing options...
khemia Posted April 30, 2020 Share Posted April 30, 2020 Still no changes in front end... Link to comment Share on other sites More sharing options...
WRSTRKE Posted May 25, 2020 Share 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 Link to comment Share on other sites More sharing options...
Funieru Bogdan Posted May 26, 2020 Share 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 Link to comment Share on other sites More sharing options...
Nexus85 Posted July 1, 2020 Share 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. Link to comment Share on other sites More sharing options...
xlinegraphics Posted July 7, 2020 Share 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. Link to comment Share on other sites More sharing options...
Funieru Bogdan Posted July 8, 2020 Share 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 Link to comment Share on other sites More sharing options...
skeccy Posted July 6, 2021 Share 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 Link to comment Share on other sites More sharing options...
ComGrafPL Posted July 6, 2021 Share 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. Link to comment Share on other sites More sharing options...
skeccy Posted July 8, 2021 Share Posted July 8, 2021 My link is www.sicilia-bedda.it but now i have disabled the code modifications. Link to comment Share on other sites More sharing options...
SalvanaRik Posted January 4, 2022 Share Posted January 4, 2022 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 Link to comment Share on other sites More sharing options...
Yulia Vitun Posted September 19, 2022 Share Posted September 19, 2022 On 11/15/2018 at 9: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. PS 1.7.8.7 - all works. MANY Thanks! Link to comment Share on other sites More sharing options...
joe ramires Posted June 28, 2023 Share Posted June 28, 2023 (edited) .top-menu .sub-menu ul[data-depth="1"]>li { margin: 0 1.25rem; clear: both; } .popover { position: absolute; top: 0; /* left: 0; */ z-index: 1060; display: block; max-width: 200px; padding: 1px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif; font-style: normal; font-weight: 400; letter-spacing: normal; line-break: auto; line-height: 1.5; text-align: left; text-align: start; text-decoration: none; text-shadow: none; text-transform: none; white-space: normal; word-break: normal; word-spacing: normal; font-size: .875rem; word-wrap: break-word; background-color: #fff; background-clip: padding-box; border: 1px solid rgba(0,0,0,.2); border-radius: .3rem; } .sub-menu { left: auto; min-width: 50%; } .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; display: none; } Adding these lines to customm.css is the correct solution to the problem: Edited June 28, 2023 by joe ramires (see edit history) Link to comment Share on other sites More sharing options...
alexandr0s Posted November 4, 2023 Share Posted November 4, 2023 On 6/28/2023 at 8:27 AM, joe ramires said: .top-menu .sub-menu ul[data-depth="1"]>li { margin: 0 1.25rem; clear: both; } .popover { position: absolute; top: 0; /* left: 0; */ z-index: 1060; display: block; max-width: 200px; padding: 1px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif; font-style: normal; font-weight: 400; letter-spacing: normal; line-break: auto; line-height: 1.5; text-align: left; text-align: start; text-decoration: none; text-shadow: none; text-transform: none; white-space: normal; word-break: normal; word-spacing: normal; font-size: .875rem; word-wrap: break-word; background-color: #fff; background-clip: padding-box; border: 1px solid rgba(0,0,0,.2); border-radius: .3rem; } .sub-menu { left: auto; min-width: 50%; } .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; display: none; } Adding these lines to customm.css is the correct solution to the problem: Hello, I copy the code in theme.css? I have themes/classic/assets/css Link to comment Share on other sites More sharing options...
joe ramires Posted November 4, 2023 Share Posted November 4, 2023 Create a custom.css file (if you don't have one) in themes/classic/assets/css/ and put the code in it. Link to comment Share on other sites More sharing options...
alexandr0s Posted November 13, 2023 Share Posted November 13, 2023 Didn't work for me. I have Presta 1.7.8.10. I cleared everything, logged in from 2 different computers but nothing changed Link to comment Share on other sites More sharing options...
joe ramires Posted November 13, 2023 Share Posted November 13, 2023 clear your browser cache - Ctrl+F5 Link to comment Share on other sites More sharing options...
alexandr0s Posted November 24, 2023 Share Posted November 24, 2023 I did everything, I tried from a different computer but still nothing 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