undergroundnetwork Posted December 16, 2022 Share Posted December 16, 2022 (edited) I used the following code to create a secondary navigation with a centered logo: <script src="//ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> <script type="text/javascript"> $(function() { $(".header-display-desktop .header-nav-item:nth-child(n+4)") .prependTo (".header-actions--right"); }); </script> However, the navigation on the left will default to two lines if the screen is smaller - there is a lot of padding in between the logo and on the side of the left screen. Additionally, the give button at the top right is being cut off the screen. I just wanted to figure out how to adjust either the spacing or to make sure everything is centered and aligned correctly. At the very least to fix the button being cut off at the top right. Anyone know how I might fix this? Edited December 16, 2022 by undergroundnetwork Link to comment
Ziggy Posted December 16, 2022 Share Posted December 16, 2022 Can you share the website URL? It looks like on smaller screens that the header actions box is not big enough to accommodate the addition of the two navigation items. I would suggest that you should only implement this style change when the screen is big enough to take this layout. Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️ Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
undergroundnetwork Posted December 16, 2022 Author Share Posted December 16, 2022 @Ziggy Thanks for your reply. The URL is www.thejja.org That makes sense, but even on bigger screens it looks like there is enough room but the spacing on the left side of the screen or between items is quite wide, so I was hoping there would be a way to adjust that. Link to comment
Solution Ziggy Posted December 16, 2022 Solution Share Posted December 16, 2022 You can try this Custom CSS, it adjusts the widths of the containers in the header, may not be perfect, but a start: .header-title-nav-wrapper { flex: 0 0 60%; } .header-layout-branding-center .header-title { width: 10%; flex: 1 1 10%; } .header-layout-branding-center .header-actions { width: 40%; } undergroundnetwork 1 Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️ Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
undergroundnetwork Posted December 16, 2022 Author Share Posted December 16, 2022 @Ziggy That's actually exactly what I needed! Thank you so much! 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