- This topic has 9 replies, 2 voices, and was last updated 3 years, 9 months ago by
Tom.
-
AuthorPosts
-
August 16, 2018 at 11:40 pm #651446
Sam
Hi Tom,
Prior to elements, whenever I use a typography style sheet (something like <link rel=”stylesheet” type=”text/css” href=”https://cloud.typography.com/) I’d always had no problem placing it in wp_head.
However, after the update, I’ve added the file into Elements, as a hook, under wp_head, set it to Entire Site to all users, even disabled Google Fonts, but the fonts don’t seem to appear. Any help? Thanks!
GeneratePress 2.1.3GP Premium 1.7.1August 17, 2018 at 8:36 am #651933Tom
Lead DeveloperLead DeveloperHi there,
Any chance you can link me to your site?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentAugust 21, 2018 at 1:19 am #655294Sam
Hi Tom,
It’s on local server, but it’s showing the following errors:
JQMIGRATE: Migrate is installed, version 1.4.1
fonts.css:1 Failed to load resource: the server responded with a status of 403 (Forbidden)
contentscript.js:58 <body itemtype=”https://schema.org/Blog” itemscope=”itemscope” class=”home blog logged-in admin-bar post-image-below-header post-image-aligned-center infinite-scroll sticky-menu-fade mobile-header mobile-header-logo mobile-header-sticky right-sidebar nav-float-right fluid-header separate-containers active-footer-widgets-3 nav-aligned-right header-aligned-left dropdown-hover customize-support”>…</body>
fonts.css:1 Failed to load resource: the server responded with a status of 403 (Forbidden)August 21, 2018 at 1:20 am #655295Sam
To add on, I see the fonts stylesheet loaded in the head section, but for some reason the font just doesn’t want to budge…
August 21, 2018 at 3:29 am #655400Sam
Tom, if this helps, the error is coming from fonts:css 1
August 21, 2018 at 8:46 am #655847Tom
Lead DeveloperLead DeveloperA 403 error means that the server that fonts.css lives on is rejecting the request from your site. Perhaps that site doesn’t accept requests from local servers?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentAugust 21, 2018 at 8:49 am #655850Sam
Hmm. I thought so too. But the previous version before Elements update worked perfect…
Unless I can go another way to input the fonts without going through Elements? Or will I get the same outcome?
P.S. your support is the best i’ve seen in years – and I think i’ve seen them all 😀
August 21, 2018 at 8:54 am #655862Tom
Lead DeveloperLead DeveloperYou can try using a manual hook:
add_action( 'wp_head', function() { ?> Your hook content here. <?php } );
Let me know 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentAugust 21, 2018 at 8:20 pm #656353Sam
Tom – reporting back. I got it fixed by including localhost in Typography – https://dashboard.typography.com/user-guide/managing-domains
Thanks for your help!
August 22, 2018 at 10:16 am #657032Tom
Lead DeveloperLead DeveloperNo problem! Glad you got it working 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.