Skip to content

Instantly share code, notes, and snippets.

@muks999
Forked from artikus11/functions.php
Created October 9, 2018 13:00
Show Gist options
  • Save muks999/8f3a3c8fd5843978617092bafb64181b to your computer and use it in GitHub Desktop.
Save muks999/8f3a3c8fd5843978617092bafb64181b 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