jpeyton114 Posted June 4, 2020 Share Posted June 4, 2020 Site URL: http://parsnip-mustard-kmc7.squarespace.com I had added custom fonts to my site title and headers. They were working just fine. I wanted to add a form for my email marketing from Flodesk. I followed the instructions to inject the header code and then add a code block and add the inline code to add the form where I wanted it on my page. The form works. BUT now all my custom fonts do not. Am I missing something? Do I now need to do something else to make my fonts work again? Link to comment
tuanphan Posted June 4, 2020 Share Posted June 4, 2020 Which code did you add? Can you post here? 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
jpeyton114 Posted June 5, 2020 Author Share Posted June 5, 2020 I put this code into the code injection header section under advanced: <script> (function(w, d, t, s, n) { w.FlodeskObject = n; var fn = function() { (w[n].q = w[n].q || []).push(arguments); }; w[n] = w[n] || fn; var f = d.getElementsByTagName(t)[0]; var e = d.createElement(t); var h = '?v=' + new Date().getTime(); e.async = true; e.src = s + h; f.parentNode.insertBefore(e, f); })(window, document, 'script', 'https://assets.flodesk.com/universal.js', 'fd'); </script> This is the inline code I added to the home page and blog sidebar: <div id="fd-form-5ed8f210b9c153002b5ad9a4"></div> <script> window.fd('form', { formId: '5ed8f210b9c153002b5ad9a4', containerEl: '#fd-form-5ed8f210b9c153002b5ad9a4' }); </script> The custom CCS for the fonts (that were working) is: @font-face{ font-family: 'thestylededit'; src:local('thestylededit'), url(https://static1.squarespace.com/static/5ec06a46dc6caa06d366b1fd/t/5ec06aae9974cb409fe77637/1589668527982/TheStyledEdit.otf); } /* Desktop */ div#site-title-wrapper h1#site-title a{ font-family: thestylededit; } /* mobile */ nav#mobile-navigation span#mobile-navigation-title a{ font-family: thestylededit; } h1 {font-family: 'thestylededit' !important; } Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.