wordpress wp_enqueue_style 'layout' child theme code example

Example: wordpress enqueue style child theme

// To enqueue the WordPress way your CSS sources
// INSIDE your theme/child functions.php:

function wp_starter_scripts() {
	wp_enqueue_style( 'wp-style-menu', get_template_directory_uri() . '/style-menu.css' );
	wp_enqueue_style( 'wp-style-buttons', get_template_directory_uri() . '/style-buttons.css' );
	wp_enqueue_style( 'wp-style-footer', get_template_directory_uri() . '/style-footer.css' );
  }
add_action( 'wp_enqueue_scripts', 'wp_starter_scripts' );

Tags:

Php Example