benelliott Posted September 21, 2022 Share Posted September 21, 2022 Site URL: https://www.becreative.team Hey everyone. Pains me to ask this, but I can't work out why my custom font (Stanley) isn't working in Safari? TFF & OTF files are present. Can anyone advise? Thanks so much: @font-face { font-family: ‘Stanley’; src: url('https://static1.squarespace.com/static/61f469f8788dc37c04814944/t/6315238d8f99c2593816b60f/1662329741715/Stanley.ttf'); src: url('https://static1.squarespace.com/static/61f469f8788dc37c04814944/t/632b8fd84d3f4517a5e1c8f7/1663799256880/Stanley.otf');} h1, h2, h3, .button-block *, .image-button a,.header-actions .btn,.header-skip-link { font-family: Stanley !important; } Link to comment
Ziggy Posted September 22, 2022 Share Posted September 22, 2022 Hi @benelliott! Both .OFT and .TTF should render on iOS devices, but why have you got two sources for one font? Does it work if you remove one of the sources from the CSS? benelliott 1 Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com 🔌 Ghost Squarespace Plugins (Referral link)📈 SEO Space (Referral link)⬛ SquareWebsites Plugins (Referral link)☕ Did I help? Buy me a coffee? Link to comment
benelliott Posted September 22, 2022 Author Share Posted September 22, 2022 Thanks Ziggy, I started afresh this morning and it's working now, thanks!: @font-face { font-family:Stanley; src:url(https://static1.squarespace.com/static/61f469f8788dc37c04814944/t/632b8fd84d3f4517a5e1c8f7/1663799256880/Stanley.otf) } h1 {font-family:Stanley} h2 {font-family:Stanley} h3{font-family:Stanley} .sqs-block-button-element {font-family:Stanley} 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