Created
January 31, 2017 06:01
-
-
Save pixedelic/ae4c945367e079eeba1df784a01bbad1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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_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