Add custom stylesheet to a StudioPress child theme (WordPress)

When I create a StudioPress child theme, I prefer to have a separate file with custom CSS. 

Add this to the functions.php file: 

add_action( 'wp_enqueue_scripts', 'webwerk_custom_stylesheet' );
function webwerk_custom_stylesheet() {
    wp_enqueue_style( 'custom-style', get_stylesheet_directory_uri() . '/custom.css' );


Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and email addresses turn into links automatically.
  • Lines and paragraphs break automatically.