Skip to content

Instantly share code, notes, and snippets.

@artikus11
Created June 1, 2017 19:15
Show Gist options
  • Save artikus11/ca7ccdf9bd4697608bf4bb7461afaf85 to your computer and use it in GitHub Desktop.
Save artikus11/ca7ccdf9bd4697608bf4bb7461afaf85 to your computer and use it in GitHub Desktop.
Подключение дочерней темы в файле functions.php
add_action( 'wp_enqueue_scripts', 'artabr_child_theme_enqueue_styles' );
function artabr_child_theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array( 'parent-style' ), wp_get_theme()->get( 'Version' ) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment