-
Author
-
September 2, 2015 at 20:48 #75893
MariK
ParticipantHi there,
we added webfont from MyFonts.com and followed the instructions how to upload the font. But how do we get the code in the head of every page?Regards
/MSeptember 2, 2015 at 23:51 #75920sharmstr
ModeratorYou can use wp_head: https://codex.wordpress.org/Plugin_API/Action_Reference/wp_head
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 3, 2015 at 00:01 #75927MariK
ParticipantOk,
thanks alot but I dont understand how to use that code.
This is the code we got from MyFonts, where do I paste it in the code?<!–
/**
* @license
* MyFonts Webfont Build ID 3078395, 2015-08-20T03:57:42-0400
*
* The fonts listed in this notice are subject to the End User License
* Agreement(s) entered into by the website owner. All other parties are
* explicitly restricted from using the Licensed Webfonts(s).
*
* You may obtain a valid license at the URLs below.
*
* Webfont: ModernBrush-Regular by Street Type
* URL: http://www.myfonts.com/fonts/street-type/modern-brush/regular/
* Copyright: Copyright (c) 2014 by Street Type Foundry. All rights reserved.
* Licensed pageviews: 20,000
*
*
* License: http://www.myfonts.com/viewlicense?type=web&buildid=3078395
*
* © 2015 MyFonts Inc
*/–>
<link rel=”stylesheet” type=”text/css” href=”MyFontsWebfontsKit.css”>September 3, 2015 at 00:33 #75936sharmstr
ModeratorYou can use the example in the link I gave you in your child theme’s function.php file. But since you’re only trying to load a style sheet and not actually run code, then you are better off using the standard way of loading style sheets: https://codex.wordpress.org/Function_Reference/wp_enqueue_style
http://www.paulund.co.uk/add-stylesheets-to-wordpress-correctly
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘KLEO’ is closed to new topics and replies.