taymbec Posted September 11, 2019 Posted September 11, 2019 Hi! I'm super new to CSS and coding so please be as thorough as possible. I downloaded a custom font (HelveticaNow) and I have successfully applied it to my headers and body text through CSS. If it's relevant, the template I am using is Native. Here is what has worked for me as far as body text goes: @font-face { font-family: 'HELVETICANOW'; src: url('https://static1.squarespace.com/static/5d6c2d758a0acc000187f3f5/t/5d795050146faa22dd3e6e24/1568231504475/HelveticaNowDisplayXBlk.otf'); } p {font-family: 'helveticanow';} font-size: 14px; I've also gotten the headers to work using a nearly identical code (just putting h1, h2, h3, etc., in place of the p on line 6). My trouble now comes with trying to apply this to the site title. I've looked at numerous Q&A's and videos but nothing has worked for me. I also have yet to attempt adding a custom font to the navigation bar, though I would also like to eventually do that aswell; if someone could include the coding for the navigation bar in addition to the site title, that would be awesome. Thanks! (p.s.) Since I am so incredibly new to CSS, I would greatly appreciate a simple copy-and-paste solution, if possible :)
taymbec Posted September 11, 2019 Author Posted September 11, 2019 my apologies, there is not a 5 on line 4. that was a typo on my part. the only thing on line 4 is }
tuanphan Posted September 12, 2019 Posted September 12, 2019 @taymbec /* Custom Font - Site Title */ .site-title span { font-family: 'HELVETICANOW' !important; } /* Custom Font - Header Main Navigation */ .main-nav * { font-family: 'HELVETICANOW' !important; } Reference: https://beaverhero.com/native-squarespace/ 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!)
taymbec Posted September 12, 2019 Author Posted September 12, 2019 thank you so much! worked like a charm! :)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.