Created
March 5, 2018 16:12
-
-
Save rwdevpixelparlor/d09790f3dad0a368126479d170aa6669 to your computer and use it in GitHub Desktop.
WP Enqueue New Styles
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', 'theme_enqueue_styles' ); | |
function theme_enqueue_styles() { | |
wp_enqueue_style( 'divi', get_template_directory_uri() . '/style.css' ); | |
//wp_enqueue_script( 'divi', plugin_dir_url( __FILE__ ) . 'js/scripts.js', array( 'jquery', 'divi-custom-script' ), '0.1.2', true ); | |
wp_enqueue_script( 'app', get_bloginfo( 'stylesheet_directory' ) . '/js/scripts.js', array( 'jquery' ), '1.0.0' ); | |
wp_enqueue_style( 'normalize', get_bloginfo( 'stylesheet_directory' ) . '/css/normalize.css'); | |
wp_enqueue_style( 'font', get_bloginfo( 'stylesheet_directory' ) . '/css/typography.css'); | |
} | |
// For Divi Child Theme (Can be used with other themes) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment