Skip to content

Instantly share code, notes, and snippets.

@pixedelic
Created January 31, 2017 06:01
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 pixedelic/ae4c945367e079eeba1df784a01bbad1 to your computer and use it in GitHub Desktop.
Save pixedelic/ae4c945367e079eeba1df784a01bbad1 to your computer and use it in GitHub Desktop.
<?php
add_action( 'wp_ajax_pix_editor_styles', 'lymancreative_extra_dynamic_css', 1 );
add_action( 'wp_ajax_nopriv_pix_editor_styles', 'lymancreative_extra_dynamic_css', 1 );
add_filter( 'mood_top_extra_dynamic_css', 'lymancreative_extra_dynamic_css' );
function lymancreative_extra_dynamic_css(){
?>
@font-face {
font-family: 'proxima-nova';
src: url('<?php echo esc_url( content_url() ); ?>/mood-includes/fonts/proximanova-bold-webfont.woff2') format('woff2'),
url('<?php echo esc_url( content_url() ); ?>/mood-includes/fonts/proximanova-bold-webfont.woff') format('woff');
font-weight: 700;
font-style: normal;
}
@font-face {
font-family: 'proxima-nova';
src: url('<?php echo esc_url( content_url() ); ?>/mood-includes/fonts/proximanova-boldit-webfont.woff2') format('woff2'),
url('<?php echo esc_url( content_url() ); ?>/mood-includes/fonts/proximanova-boldit-webfont.woff') format('woff');
font-weight: 700;
font-style: italic;
}
@font-face {
font-family: 'proxima-nova';
src: url('<?php echo esc_url( content_url() ); ?>/mood-includes/fonts/proximanova-regitalic-webfont.woff2') format('woff2'),
url('<?php echo esc_url( content_url() ); ?>/mood-includes/fonts/proximanova-regitalic-webfont.woff') format('woff');
font-weight: 400;
font-style: italic;
}
@font-face {
font-family: 'proxima-nova';
src: url('<?php echo esc_url( content_url() ); ?>/mood-includes/fonts/proximanova-regular-webfont.woff2') format('woff2'),
url('<?php echo esc_url( content_url() ); ?>/mood-includes/fonts/proximanova-regular-webfont.woff') format('woff');
font-weight: 400;
font-style: normal;
}
<?php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment