Alexander12345678 Posted May 12 Share Posted May 12 Hi, I've seen similar posts for this and have tried chat GPT. Is there a way to create a gradient fill for my homepage background section header and keep a white solid fill for all other page headers? The URL slug is /home, I'm not sure if my problem has been not inputting the correct page ID in CSS, if this could be done with just page settings- general, PAGE HEADER CODE INJECTION that would be great. Thanks! Alexander visualcreative 1 Link to comment
tuanphan Posted May 14 Share Posted May 14 What is site url? 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
Alexander12345678 Posted May 15 Author Share Posted May 15 This is the homepage url: CarbonPlan engineering (squarespace.com), https://gecko-orb-3p2m.squarespace.com/config/ Thank you Link to comment
Alexander12345678 Posted May 17 Author Share Posted May 17 Any luck with this so far? I want section header shown below to be white and then home page to look like the section image if that makes sense. Link to comment
tuanphan Posted May 20 Share Posted May 20 On 5/15/2023 at 4:20 PM, Alexander12345678 said: This is the homepage url: CarbonPlan engineering (squarespace.com), https://gecko-orb-3p2m.squarespace.com/config/ Thank you What is password? 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
Solution visualcreative Posted May 30 Solution Share Posted May 30 I have a related question. Does anyone know how to trigger a different header style for only some pages? i.e., default gradient style on most pages; solid on others. I have two brands on one website; I have created a replacement navigation menu using Will Meyers Nav Replacement plug-in, and a second footer with hide globally / show locally logic. I am using the gradient style for the main brand's nav (Brush Education https://brush-education.squarespace.com). I was able to revise the colour of the gradient for the second nav. <style> :root { --gradientHeaderBackgroundColor: *insert gradient* !important; } </style> Instead I want the second brand's nav to be SOLID. Does anyone know how can I trigger this in CSS? I'd like to include it in the header code for each page that belongs to the second brand (Dog Training Press https://brush-education.squarespace.com/dtp-catalogue/p/retriever). PW: brushview Thanks! Link to comment
tuanphan Posted June 2 Share Posted June 2 On 5/31/2023 at 12:33 AM, visualcreative said: I have a related question. Does anyone know how to trigger a different header style for only some pages? i.e., default gradient style on most pages; solid on others. I have two brands on one website; I have created a replacement navigation menu using Will Meyers Nav Replacement plug-in, and a second footer with hide globally / show locally logic. I am using the gradient style for the main brand's nav (Brush Education https://brush-education.squarespace.com). I was able to revise the colour of the gradient for the second nav. <style> :root { --gradientHeaderBackgroundColor: *insert gradient* !important; } </style> Instead I want the second brand's nav to be SOLID. Does anyone know how can I trigger this in CSS? I'd like to include it in the header code for each page that belongs to the second brand (Dog Training Press https://brush-education.squarespace.com/dtp-catalogue/p/retriever). PW: brushview Thanks! Add this code to Page Header to remove gradient and add solid background <style> .header-background-gradient { background-image: unset !important; background-color: #f1f !important; } </style> visualcreative and Alexander12345678 2 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
visualcreative Posted June 4 Share Posted June 4 On 6/2/2023 at 6:43 PM, tuanphan said: Add this code to Page Header to remove gradient and add solid background <style> .header-background-gradient { background-image: unset !important; background-color: #f1f !important; } </style> Thank you @tuanphan! That worked perfectly. Link to comment
visualcreative Posted June 4 Share Posted June 4 With the gradient turned off here, the nav folder dropdown now holds on to the original banner colour (blue, vs the solid red I have added to the Page Header code). I'm not seeing how to target that drop-down folder here. Help once more @tuanphan? Much gratitude in advance! Link to comment
tuanphan Posted June 8 Share Posted June 8 On 6/5/2023 at 4:42 AM, visualcreative said: With the gradient turned off here, the nav folder dropdown now holds on to the original banner colour (blue, vs the solid red I have added to the Page Header code). I'm not seeing how to target that drop-down folder here. Help once more @tuanphan? Much gratitude in advance! With folder, use this code <style> .header-nav-folder-content { background-image: unset !important; background-color: #f1f !important; } </style> visualcreative 1 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
visualcreative Posted June 9 Share Posted June 9 Hoorah! Thank you @tuanphan That solves it perfectly! 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