Last active
December 19, 2015 06:49
-
-
Save theodorocaliari/5913763 to your computer and use it in GitHub Desktop.
Call style recommended practice in functions.php of WordPress
This file contains 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 | |
function custom_style(){ | |
$css = dirname(get_bloginfo('stylesheet_url'))."/your_style.css"; | |
wp_register_style('name_ur_choice', $css); | |
wp_enqueue_style('name_ur_choice'); | |
} | |
add_action('wp_enqueue_scripts', 'custom_style', $priority); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment