<?php
/**
 * Everyday Fashion Nook - Child Theme Functions
 *
 * @package Everyday_Fashion_Nook
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Enqueue parent and child theme stylesheets.
 */
function everyday_fashion_nook_enqueue_styles() {
	$parent_style = 'fashion-nook-style';

	wp_enqueue_style(
		$parent_style,
		get_template_directory_uri() . '/style.css',
		array(),
		wp_get_theme( get_template() )->get( 'Version' )
	);

	wp_enqueue_style(
		'everyday-fashion-nook-style',
		get_stylesheet_uri(),
		array( $parent_style ),
		wp_get_theme()->get( 'Version' )
	);
}
add_action( 'wp_enqueue_scripts', 'everyday_fashion_nook_enqueue_styles' );