-if ( ! function_exists( 'scratch_jd_setup' ) ) {
- * Above: Check if scratch_jd_setup exists before running
- * Below: Sets up theme defaults and registers support for WordPress features
- * It is important to set up these functions before the init hook so that none of these features are lost.
* @since Scratch JD 1.0.0
+ * Proper way to enqueue scripts and styles
+function scratch_jd_scripts() {
- function scratch_jd_setup() {
- * Proper way to enqueue scripts and styles
- function scratch_jd_scripts() {
- wp_enqueue_style( 'scratch', get_stylesheet_uri() );
- add_action( 'wp_enqueue_scripts', 'scratch_jd_scripts' );
+ wp_enqueue_style( 'scratch-jd', get_stylesheet_uri() );
+add_action( 'wp_enqueue_scripts', 'scratch_jd_scripts' );