Guest Posted September 17, 2015 Share Posted September 17, 2015 (edited) I am using the Aubrey template. I've imported my custom font but it's not applying to my Site Title on the home page. I tried the code mentioned here (http://answers.squarespace.com/questions/96591/gravity-changing-site-title-to-a-custom-font) but that didn't work for me. Any help would be appreciated! Edited September 23, 2016 by chriscc retag Link to comment
Guest Tamas Posted December 31, 2015 Share Posted December 31, 2015 (edited) Hey - try this below Add the font first. (Download the otf file and add to custom css/ file manager). In the code below: change 'Example' to your font name you want to use. @font-face{ font-family: 'Example'; src:local('Example'), url(http://static1.squarespace.com/static/5683f9f1cbced6d45d92de3d/t/56855928e0327c02e3702e57/1451579688037/Example.otf); } Once you have the font installed like above, apply it to your Site Title in the navbar( aka. header) #site-title {font-family: 'Example'; src:local('Example'), url(http://static1.squarespace.com/static/5683f9f1cbced6d45d92de3d/t/56855928e0327c02e3702e57/1451579688037/Example.otf)} Hope it helps. Cheers Edited December 31, 2015 by Tamas Link to comment
kylebarrydesign Posted October 26, 2016 Share Posted October 26, 2016 This did not work for me. I uploaded the font file (.ttf) and changed the font name as instructed. I even tried inserting the code from directly clicking on the font within "manage custom files". Link to comment
kylebarrydesign Posted October 26, 2016 Share Posted October 26, 2016 Just figured it out. Paste the below text and replace Example with your custom font. #header h1.site-title { font-family: "Example";} Link to comment
soupnkit Posted February 26, 2018 Share Posted February 26, 2018 I'm new to css also and searched multiple forums. I found this solution by inspecting my squarespace webpage on google. It worked for me! 1.Copy and paste @font-face { font-family: 'GeosansLight'; src: url('https://static1.squarespace.com/static/5a8c34eb51a584a57bc62511/t/5a93aadff9619a83af6f6839/1519626975231/GeosansLight.ttf '); font-weight: normal; font-style: normal; } .has-site-title .Header-branding { font-family: "GeosansLight"; } 2.Changes you need to make for this to work--> a. upload your own font on 'manage custom file' and obtain 'src: url' by clicking on uploaded font file title. b. change 'font-family' and 'src: url' Link to comment
lumaoquendo Posted March 20, 2020 Share Posted March 20, 2020 Hey guys! I used this code to change my Logo font at Squarespace, however at the mobile it keeps same wrong font. Is there any aditional code for changing at the mobile as well? Link to comment
tuanphan Posted March 20, 2020 Share Posted March 20, 2020 1 hour ago, lumaoquendo said: Hey guys! I used this code to change my Logo font at Squarespace, however at the mobile it keeps same wrong font. Is there any aditional code for changing at the mobile as well? Each template uses different code for site title/logo. Can you share link to your site? 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
JenTerpstra Posted May 20, 2022 Share Posted May 20, 2022 On 12/31/2015 at 6:36 AM, Guest Tamas said: #site-title {font-family: 'Example'; src:local('Example'), url(http://static1.squarespace.com/static/5683f9f1cbced6d45d92de3d/t/56855928e0327c02e3702e57/1451579688037/Example.otf)} I realize this post is quite old, but figured others might find it while searching for an answer to this like I did. On my Squarespace 7.1, all I needed was the first part of this code and the uploaded font, making sure to reference the font exactly as the filename shows it in the font upload. The custom font CSS I used was also slightly different. I'll include both code snippets below in case it helps anyone using 7.1! Be sure to replace "fontfilename" in all instances with the name of the font file exactly as shown in the file upload (so whatever name comes before the .otf). //Add custom font to site title// #site-title {font-family: 'fontfilename'; } //Custom font// @font-face { font-family: fontfilename; src: url(put your URL here); } mr-slipperson and nataliemeyers 2 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