ElizabethKosich Posted April 30 Posted April 30 I'm using the Sophia Rey template and need to change nav menu from horizontal layout to vertical/stacked. Does anyone have code for this? See how current layout collides with logo. Any info/comments are welcome! Thank you.
tuanphan Posted May 1 Posted May 1 Can you share link to your site? I tried check template demo but they uses a different nav structure https://sofia-demo.squarespace.com/ 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!)
ElizabethKosich Posted May 1 Author Posted May 1 Hi Tuan, Thanks for taking a look! Domain is https://elizabethkosichstyling.com/. Note mobile navigation is how I need desktop nav menu to function, screen shot of mobile attached and see desktop view above with original post. Any help is greatly appreciated! LMK? Thanks! Elizabeth
Sam0smith Posted May 1 Posted May 1 Hi Elizabeth, Please use this code to Website > Website Tools > Custom CSS .Header-nav { display: inline-block; } [data-nc-container="bottom-center"] { width: 100%; } [data-nc-container="bottom-left"] { text-align: center !important; display: block !important; position: absolute; margin-top: 140px; z-index: 999; } niko-rahayo81 1
ElizabethKosich Posted May 1 Author Posted May 1 Hello Sam, Thanks for this Sam, but it doesn't work! The code you provided changes nav menu to horizontal format that's centered across top of page, with logo changing to left justified. I'm attaching 2 screen shots so you can see this code's changes. I'm looking for code that will 1.) keep logo centered and 2.) change nav menu from horizontal to vertical/stacked like how it currently functions on mobile (see my post to Tuan for screen shot of mobile view with nav menu stacked). Any chance you have code for these changes? Thanks so much for jumping in here and helping!
Solution ElizabethKosich Posted May 3 Author Solution Posted May 3 THANK YOU Tuan for resolving this issue! See attached screen shot of the updated nav menu in vertical/stacked format. For anyone needing the same change, below is the code and you can also find it here: https://summaryblock.com/save-code/139-2/ nav.Header-nav.Header-nav--secondary>div { flex-direction: column !important; display: flex; } nav.Header-nav.Header-nav--secondary { padding-top: 7px !important; } nav.Header-nav.Header-nav--secondary a.Header-nav-item { padding-bottom: 3px !important; padding-top: 3px !important; }
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment