livayan Posted October 7, 2023 Posted October 7, 2023 (edited) Hi everyone I have created multilingual website by creating a folder called "ENG/DE" and I putted in there paged called "English" and "Deutsch" which is showing as a drop down menu. Then I put e css code in advanced section of each page (English and Deutsch) to hide navigation titles of opposite language. here you can see the code. /* Hide the first 7 navigation titles on the first page */ @media screen and (max-width: 1024px) { #header .header-menu-nav-item:nth-child(-n+7) { display: none; } It working very good, but I have a problem, in Deutsch page's mobile version along with first 7 navigation titles it's also hiding sub-menu pages "back ", "English" and "Deutsch" because they are first 3 pages of sub-menu. Question: How can I customize the code to hide navigation titles from only the first page of burger menu but don't touch or don't affect in any ways the sub -menu? Thank you so much Edited October 7, 2023 by livayan
tuanphan Posted October 9, 2023 Posted October 9, 2023 Use this code instead /* hide items on mobile */ [data-folder="root"]>div:first-child>div:nth-child(-n+7) { display: none; } livayan 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!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment