JayPee Posted March 10, 2023 Share Posted March 10, 2023 ** Currenlty the domain is being transferred so the site URL may link to the old site ** I don't know much about coding. I wanted to use a custom font across my site. I copy and pasted the code below and the font is in all the correct places (although annoyingly it appears straight, not italic, not an issue, but confusing). The issue i have have is that the site has a couple of glitches, my client has an issue where the image on the homepage sometimes appears zoomed in which i can't replicate. I've sometimes seen that the contact link in the header sometimes disappears. I contacted SS support, but they said the issue is the custom code. Is there anything glaringly obvious with the code that could be causing my issues? Or does anyone have any suggestions? Cheers J //---Custom Fonts--- 2 3 font-family: 'aldine-401-italic-bt'; 4 5 h1, h2, h3, h4, h5, p, {font-family: aldine-401-italic-bt, 6 7 //---Font Upload--- 8 @font-face { 9 font-family: 'aldine-401-italic-bt'; 10 src: url('https://static1.squarespace.com/static/63a0d5c0d3b7cc5b3a17657a/t/63a0d686f6cd273e254d4027/1671485062982/aldine-401-italic-bt.ttf'); 11 } 12 13 header#header *, footer.sections * { 14 font-family: aldine-401-italic-bt; 15 } missing closing `}` Link to comment
Solution Ziggy Posted March 10, 2023 Solution Share Posted March 10, 2023 Not sure what's going on with the image being zoomed in without being able to see it in situ. You code has a clear error, as you can see at the bottom in red: missing closing `}` It also looks like there are more errors everywhere, I'll try and clean up the code for you here: //---Custom Fonts---// @font-face { font-family: 'aldine-401-italic-bt'; src: url('https://static1.squarespace.com/static/63a0d5c0d3b7cc5b3a17657a/t/63a0d686f6cd273e254d4027/1671485062982/aldine-401-italic-bt.ttf'); } h1, h2, h3, h4, h5, p { font-family: aldine-401-italic-bt; } header#header *, footer.sections * { font-family: aldine-401-italic-bt; } Hope that helps! 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
JayPee Posted March 16, 2023 Author Share Posted March 16, 2023 (edited) @Ziggy Thanks so much for that. Legend. I don't know what you did, but I am now free of that error. I am not sure if this is related, but I am getting this error on the /about page where a grey bar appears at the bottom. SqSp support suggest the issues are custom code, but I'm out of my depth here. Do you have any suggestions? Edited March 16, 2023 by JayPee Link to comment
Ziggy Posted March 16, 2023 Share Posted March 16, 2023 50 minutes ago, JayPee said: I don't know what you did, but I am now free of that error. I added the missing curly bracket. 50 minutes ago, JayPee said: I am not sure if this is related, but I am getting this error on the /about page where a grey bar appears at the bottom. SqSp support suggest the issues are custom code, but I'm out of my depth here. This isn't an error, you have a header at the top, a footer at the bottom which take up ~10% of the viewport (window) height, and on this page you have one section that takes up ~75% of the height, so the grey is simply the extra space that isn't header, footer, or page content. To get rid of that, on a page with just one section, make sure the section height is set to L (large). I have no idea why Squarespace support couldn't help you with that, they're normally pretty good, but they do blame custom code a bit too quickly in my opinion (though it often is a regular cause of problems) 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
JayPee Posted March 17, 2023 Author Share Posted March 17, 2023 Cheers dude. Yeah i think that was my worry, they said Custom Code was a problem, so I just assumed the worst. The site is up and looks great now, so thank you J Ziggy 1 Link to comment
Ziggy Posted March 17, 2023 Share Posted March 17, 2023 Could you mark my post as the solution to your question, and give it a thumbs up? Thanks! JayPee 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment