-
-
Save tommcfarlin/f68f25673c0c131c8d5352b65b23cc01 to your computer and use it in GitHub Desktop.
[WordPress] Including Custom Fonts in WordPress Plugins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
font-family: 'Roboto', sans-serif; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@font-face { | |
font-family: GothamLight; | |
src: url("../fonts/Gotham-Light.otf") format("opentype"); | |
} | |
@font-face { | |
font-family: ThirstyScriptMedium; | |
src: url("../fonts/ThirstyScriptMedium.otf") format("opentype"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#search_keywords { | |
background: #ffffff; | |
color: #151335; | |
font-family: 'GothamLight', sans-serif; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action('wp_enqueue_scripts', 'acme_enqueue_styles'); | |
/** | |
* Registers the stylesheet for the Acme Plugin Styles. | |
*/ | |
function acme_enqueue_styles() | |
{ | |
wp_enqueue_style( | |
'acme-visuals', | |
plugin_dir_url(dirname(__FILE__)).'assets/css/public.css', | |
[], | |
rand(), | |
'screen' | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment