amandahouston Posted July 5, 2021 Share Posted July 5, 2021 Site URL: https://sheep-badger-7tzn.squarespace.com/ Hi all! I've seen a variety of questions on this topic but was unable to find one that was specific to my issue. I like having a fixed navigation header at the top of the site, but it is so large that when I scroll down it blocks a lot of my images. Is there a code that I can use to shrink the entire header as I scroll down so that it becomes much thinner? Thanks in advance! Link to comment
Solution tuanphan Posted July 7, 2021 Solution Share Posted July 7, 2021 On 7/5/2021 at 9:57 PM, amandahouston said: Site URL: https://sheep-badger-7tzn.squarespace.com/ Hi all! I've seen a variety of questions on this topic but was unable to find one that was specific to my issue. I like having a fixed navigation header at the top of the site, but it is so large that when I scroll down it blocks a lot of my images. Is there a code that I can use to shrink the entire header as I scroll down so that it becomes much thinner? Thanks in advance! Hi. It looks like you fixed with this code? .title-nav-wrapper .site-title img { transition: max-height 140ms ease-in-out } .title-nav-wrapper.shrink { padding-top: 20px !important; padding-bottom: 20px !important } .title-nav-wrapper.shrink .site-title img { max-height: 40px } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
adameus Posted December 21, 2022 Share Posted December 21, 2022 i have tried that code on my site https://mauve-calliope-enxy.squarespace.com/ \PW: Adameus1 but it is not working (I assume it is CSS). Any suggestions? Link to comment
tuanphan Posted December 24, 2022 Share Posted December 24, 2022 On 12/22/2022 at 12:23 AM, adameus said: i have tried that code on my site https://mauve-calliope-enxy.squarespace.com/ \PW: Adameus1 but it is not working (I assume it is CSS). Any suggestions? Use this code for your site header#header img { transition: all 0.3s; } header#header.shrink img { max-height: 100px; transition: all 0.3s; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
adameus Posted January 4 Share Posted January 4 this looks pretty darn good. I wouldnt mind if the menu items moved up a little when it shrinks so it stays centered, but I think it looks good. I will run it by my client and THANKS you are amazing. tuanphan 1 Link to comment
gibgib Posted May 10 Share Posted May 10 #header .header-title-logo img { transition: max-height 140ms ease-in-out } #header.shrink { .header-announcement-bar-wrapper{ padding-top: 20px!important; padding-bottom: 20px!important; } .header-title-logo img { max-height: 40px; } } I have this to shrink the logo, however, it seems like on mobile it makes the logo larger rather than smaller, any ideas on how to make it shrink both on mobile and desktop? I also would really like it if I could shrink the button in my header with the logo, is there any code to do so? Link to comment
tuanphan Posted May 12 Share Posted May 12 On 5/11/2023 at 5:30 AM, gibgib said: #header .header-title-logo img { transition: max-height 140ms ease-in-out } #header.shrink { .header-announcement-bar-wrapper{ padding-top: 20px!important; padding-bottom: 20px!important; } .header-title-logo img { max-height: 40px; } } I have this to shrink the logo, however, it seems like on mobile it makes the logo larger rather than smaller, any ideas on how to make it shrink both on mobile and desktop? I also would really like it if I could shrink the button in my header with the logo, is there any code to do so? What is site url? 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 How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
gibgib Posted May 15 Share Posted May 15 Hi! it is https://www.bouldersgym.com/ On 5/12/2023 at 2:49 AM, tuanphan said: What is site url? We can check problem easier Link to comment
tuanphan Posted May 19 Share Posted May 19 On 5/16/2023 at 1:44 AM, gibgib said: Hi! it is https://www.bouldersgym.com/ Add this to Design > Custom CSS #header.shrink .header-display-mobile .header-title-logo img { max-height: 20px !important; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care 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