Skip to main content
Format as a code block
Source Link
Rup
  • 4.4k
  • 4
  • 28
  • 29

The process is simple, you can just create a functions.php file in your child theme directory and call the parent theme style:

Put the code! function child_assets(){ wp_enqueue_style( "parent-style" , get_parent_theme_file_uri( '/style.css' ) ); } add_action( "wp_enqueue_scripts", "child_assets" );

function child_assets(){
    wp_enqueue_style( "parent-style" , get_parent_theme_file_uri( '/style.css' ) );
}
add_action( "wp_enqueue_scripts", "child_assets" );

The process is simple, you can just create a functions.php file in your child theme directory and call the parent theme style:

Put the code! function child_assets(){ wp_enqueue_style( "parent-style" , get_parent_theme_file_uri( '/style.css' ) ); } add_action( "wp_enqueue_scripts", "child_assets" );

The process is simple, you can just create a functions.php file in your child theme directory and call the parent theme style:

Put the code!

function child_assets(){
    wp_enqueue_style( "parent-style" , get_parent_theme_file_uri( '/style.css' ) );
}
add_action( "wp_enqueue_scripts", "child_assets" );
Source Link

The process is simple, you can just create a functions.php file in your child theme directory and call the parent theme style:

Put the code! function child_assets(){ wp_enqueue_style( "parent-style" , get_parent_theme_file_uri( '/style.css' ) ); } add_action( "wp_enqueue_scripts", "child_assets" );