Last active
October 13, 2017 14:25
-
-
Save ibndawood/a54e30fa73da53fe00e1 to your computer and use it in GitHub Desktop.
Enqueuing Custom color in child theme
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
add_action( 'wp_enqueue_scripts', 'enqueue_child_theme_styles', PHP_INT_MAX); | |
function enqueue_child_theme_styles() { | |
wp_dequeue_style( 'media_center-preset-color' ); | |
wp_enqueue_style( 'child-custom-style', get_stylesheet_directory_uri() . '/assets/css/custom-color.css', array('media_center-main-style') ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment