Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
[WordPress] Including Custom Fonts in WordPress Plugins
<link href="" rel="stylesheet">
font-family: 'Roboto', sans-serif;
@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");
#search_keywords {
background: #ffffff;
color: #151335;
font-family: 'GothamLight', sans-serif;
add_action('wp_enqueue_scripts', 'acme_enqueue_styles');
* Registers the stylesheet for the Acme Plugin Styles.
function acme_enqueue_styles()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.