Skip to content

Instantly share code, notes, and snippets.

@cobaltapps
Created May 13, 2019 19:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cobaltapps/fa969cc5fd632d88d23b692cf802c753 to your computer and use it in GitHub Desktop.
Save cobaltapps/fa969cc5fd632d88d23b692cf802c753 to your computer and use it in GitHub Desktop.
Example font-face code for screencast on how to add custom fonts to Dynamik Website Builder.
<style>
@font-face {
font-family: 'Rubik-Regular';
src: url('<?php echo get_stylesheet_directory_uri(); ?>/fonts/Rubik-Regular.eot?#iefix') format('embedded-opentype'), url('<?php echo get_stylesheet_directory_uri(); ?>/fonts/Rubik-Regular.woff') format('woff'), url('<?php echo get_stylesheet_directory_uri(); ?>/fonts/Rubik-Regular.ttf') format('truetype'), url('<?php echo get_stylesheet_directory_uri(); ?>/fonts/Rubik-Regular.svg#Rubik-Regular') format('svg');
font-weight: normal;
font-style: normal;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment