ggoodno Posted August 2, 2022 Share Posted August 2, 2022 Site URL: https://www.covidlonghaulers.com/ I have a need to hide certain items from the mobile hamburger menu, as I have done in the desktop view. However the code to hide from desktop doesn't currently translate to mobile. Could you help me fix this? I'm using 7.1. The pages that need to be hidden are currently turned off but will be turned online soon. Here's the website: https://www.covidlonghaulers.com/ Heres' the code I'm using to turn off some links in the desktop: <style> .header-nav-item:nth-child( 1 ) { display : none; } .header-nav-item:nth-child( 3 ) { display : none; } .header-nav-item:nth-child( 5 ) { display : none; } .header-nav-item:nth-child( 7 ) { display : none; } .header-nav-item:nth-child( 9 ) { display : none; } .header-nav-item:nth-child( 11 ) { display : none; } </style> Thank you! Link to comment
tuanphan Posted August 4, 2022 Share Posted August 4, 2022 Hi, Which items you want to hide on mobile? ggoodno 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
ggoodno Posted August 4, 2022 Author Share Posted August 4, 2022 Our Team, For Physicians, and Get Answers. Thank you!!! Link to comment
tuanphan Posted August 5, 2022 Share Posted August 5, 2022 Add to Design > Custom CSS <style> .header-menu-nav-folder[data-folder="root"]>div>div:nth-child(2n) { display: none; } </style> (n run from 0, 1, 2,...) Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment