Skip to content

Instantly share code, notes, and snippets.

@drjecker
drjecker / WordCamp 2015 Font-Face Code
Created May 16, 2015 09:41
WordCamp 2015 Font-Face
/* Create a new directory in your theme called it fonts, and add your custom fonts into this directory.
eg: /theme/yourtheme/fonts/
*/
/* In your themes CSS file add the following: */
@font-face { /* where FontName and fontname represents the name of the font you want to add */
font-family: 'FontName';
src: url([[font:theme|fontname.eot]]);
src: url([[font:theme|fontname.eot]]) format('embedded-opentype'),
url([[font:theme|fontname.woff]]) format('woff'),
@drjecker
drjecker / WordCamp 2015 Google & Typekit Code
Last active October 28, 2015 11:40
WordCamp 2015 Google & Typekit Code
<?php
// Add Google Fonts To Theme
// From https://premium.wpmudev.org/blog/custom-google-fonts/
function google_fonts() {
$query_args = array(
'family' => 'Open+Sans:400,700|Oswald:700'
'subset' => 'latin,latin-ext',
);

Keybase proof

I hereby claim:

  • I am drjecker on github.
  • I am drjecker (https://keybase.io/drjecker) on keybase.
  • I have a public key whose fingerprint is 4529 DD99 1A46 D211 55D9 F8FE 3758 D29B B309 8938

To claim this, I am signing this object: