NEWeOffset Posted November 14, 2019 Share Posted November 14, 2019 Hello everyone, I'm currently working on a site where I've put the call to action button in a pill-shape like this: .Header-nav.Header-nav--primary .Header-nav-inner > a:last-of-type, .Mobile-overlay-nav.Mobile-overlay-nav--primary > a:last-of-type { border: 2px solid white; padding: 10px 30px; border-radius: 300px; } The only issue is that on all other pages but the landing page the background is also white! Please can someone help me write a code to have a white border on the landing page, but black on all other pages. Thank you so much in advance Link to comment
lu.diehl Posted November 14, 2019 Share Posted November 14, 2019 Hi @NEWeOffset, can you share a link to your website and pwd if it is pwd protected? Link to comment
NEWeOffset Posted November 15, 2019 Author Share Posted November 15, 2019 Sure! www.weoffset.co.uk Abigail 1 is the password Link to comment
lu.diehl Posted November 15, 2019 Share Posted November 15, 2019 Ok. Can you confirm which template you're using? Depending on which template you're using, you might be able to fix it without CSS. Link to comment
NEWeOffset Posted November 16, 2019 Author Share Posted November 16, 2019 I believe it's a custom template! Goes live today anyway but I think it would be a lovely touch Link to comment
paul2009 Posted November 16, 2019 Share Posted November 16, 2019 Change your Custom CSS so the border is #999 instead of white so that you have a darker border on all the other pages. Then repeat the code, with the border set to white, prepending the selectors with '.homepage'. This will ensure the homepage is white instead. Let me know if you need more specific advice. Your site using using a Brine-family template btw, which includes what Squarespace refer to as the 'Custom Template' (sites made by answering questions instead of picking a design). About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. Content: Links in my posts may refer to SF Digital products or may be affiliate links. If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too. Link to comment
lu.diehl Posted November 17, 2019 Share Posted November 17, 2019 On 11/16/2019 at 8:05 AM, NEWeOffset said: I believe it's a custom template! Goes live today anyway but I think it would be a lovely touch here's the full code if you want to copy and paste - exactly what @paul2009 suggested. If you ever add a background to any other page you will have to tweak the code again. .homepage .Header-nav.Header-nav--primary .Header-nav-inner > a:last-of-type, .Mobile-overlay-nav.Mobile-overlay-nav--primary > a:last-of-type { border: 2px solid #fff; padding: 10px 30px; border-radius: 300px; } .Header-nav.Header-nav--primary .Header-nav-inner > a:last-of-type, .Mobile-overlay-nav.Mobile-overlay-nav--primary > a:last-of-type { border: 2px solid #999; padding: 10px 30px; border-radius: 300px; } Link to comment
NEWeOffset Posted November 17, 2019 Author Share Posted November 17, 2019 Thank you both so much! Has worked a charm and I am so happy with the result! Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.