zzlogan Posted March 23, 2021 Share Posted March 23, 2021 (edited) Site URL: https://pomegranate-badger-p3wd.squarespace.com/magazine I'm trying to make the Mobile header show three things: hamburger menu / Logo / Button "Buy / Subscribe", I attached what I currently have (SpaceonSpace). I also attached what I'm trying to go for (Offscreen). What would you recommend? Edited March 23, 2021 by zzlogan adding edits Link to comment
ErikaT Posted March 23, 2021 Share Posted March 23, 2021 Hi, We'd need the password to your site to confirm the coding/positioning. Also how would you want it displayed: BURGER | LOGO | BUTTON? Thanks, Erika Link to comment
tuanphan Posted March 25, 2021 Share Posted March 25, 2021 On 3/23/2021 at 9:19 AM, zzlogan said: Site URL: https://pomegranate-badger-p3wd.squarespace.com/magazine I'm trying to make the Mobile header show three things: hamburger menu / Logo / Button "Buy / Subscribe", I attached what I currently have (SpaceonSpace). I also attached what I'm trying to go for (Offscreen). What would you recommend? Hi. Do you still need help? Which plan do/will you use? 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
zzlogan Posted March 25, 2021 Author Share Posted March 25, 2021 @ErikaT, yes here is my site password: space123, https://pomegranate-badger-p3wd.squarespace.com/ What else do you need? Link to comment
Solution ErikaT Posted March 26, 2021 Solution Share Posted March 26, 2021 Hi, I edited one of @tuanphan responses to a similar query, with some tweaks for your setup:. Tuan is the expert, I'm still learning 🙂 @media screen and (max-width:1024px) { /* show button */ .header-actions { display: block !important; } .header .header-actions-action--cta { display: block; width: 10% !important; } /* logo width */ .header-title-nav-wrapper { flex: 50% !important; } } .header .header-mobile-layout-logo-center-nav-left .header-display-mobile .header-title .header-mobile-logo { padding-right: 0px; padding-left: 10px; } zzlogan 1 Link to comment
zzlogan Posted March 26, 2021 Author Share Posted March 26, 2021 On 3/23/2021 at 1:45 AM, ErikaT said: Hi, We'd need the password to your site to confirm the coding/positioning. Also how would you want it displayed: BURGER | LOGO | BUTTON? Thanks, Erika thank you! this worked out great! Link to comment
zzlogan Posted March 27, 2021 Author Share Posted March 27, 2021 @tuanphan @ErikaT, thank you for the input, here is the code I used and slightly adjusted, @media screen and (max-width:1024px) { /* show button */ .header-actions { display: block !important; } .header .header-actions-action--cta { display: block; width: 0% !important; padding-right: 0px; padding-left: 0px; } /* logo width */ .header-title-nav-wrapper { flex: 100% !important; //width: 50% !important; //max-width: 500px; padding-right: 0px; padding-left: 0px; } } /* burger width */ .header-burger { //flex: 0% !important; font-size: 10px; width: 15% !important; margin-left: -13px; } .container.header-menu-nav-item a { } .header .header-mobile-layout-logo-center-nav-left .header-display-mobile .header-title .header-mobile-logo { padding-right: 0px; padding-left: 0px; } also this post helped: Link to comment
zzlogan Posted March 27, 2021 Author Share Posted March 27, 2021 @ErikaT, would it be possible to make the button size smaller (keeping the text the same size)? And round the edges with CSS? Link to comment
ErikaT Posted March 27, 2021 Share Posted March 27, 2021 Hi, Sure, with the below (enclose the below in your 1024px media query if you want the rounded effect etc on mobiles/tablets only). You may need to adjust your logo padding slightly again after this 🙂 .header-actions-action--cta a { border-radius: 5px; padding: 0.8em 0.8em !important; } zzlogan 1 Link to comment
zzlogan Posted April 3, 2021 Author Share Posted April 3, 2021 awesome, thank you Erika! ErikaT 1 Link to comment
couper37 Posted January 15, 2022 Share Posted January 15, 2022 This worked great to get the button to display on my phone. But, it messed up the social links/button formatting in my header on the desktop. They used to be side by side (as is standard) but now they are stacked (see image). Any help? Thanks. Link to comment
tuanphan Posted January 17, 2022 Share Posted January 17, 2022 On 1/15/2022 at 7:09 AM, couper37 said: This worked great to get the button to display on my phone. But, it messed up the social links/button formatting in my header on the desktop. They used to be side by side (as is standard) but now they are stacked (see image). Any help? Thanks. Can you share link to your site? We can check problem easier 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
couper37 Posted January 17, 2022 Share Posted January 17, 2022 https://dalmatian-harpsichord-naw9.squarespace.com/ pass: freedom Link to comment
tuanphan Posted January 19, 2022 Share Posted January 19, 2022 On 1/18/2022 at 12:04 AM, couper37 said: https://dalmatian-harpsichord-naw9.squarespace.com/ pass: freedom Add to Design > Custom CSS @media screen and (min-width:992px) { .header-actions.header-actions--right { flex-direction: row !important; flex-wrap: nowrap !important; display: flex !important; position: relative; left: -30px; } } 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