asked 11 years ago


I am using the DW-Focus theme, and I am trying to customize the css. I made a child theme, replacing your CSS file, but all the CSS seems to be in template.css and responsive.css, which are under two subdirectories: assets/css.

I am trying to replace template.css with my child themes template.css file, under identical directories, but I can’t figure out how to do this. I’ve tried adding this to my child theme’s functions.php file:

require_once( get_stylesheet_directory(). ‘/assets/css/template.css’ );

But still no luck. Can you please help?

3 Answers
Jennifer N
answered 11 years ago


If you want to replace template.css with new file, please go to yoursite/wp-content/themes/dw-focus goto line 148, then remove this line:

        wp_enqueue_style( ‘dw_focus_template’, get_template_directory_uri().’/assets/css/template.css’ );

and replace by :

        wp_enqueue_style( ‘dw_focus_template’, ‘{your file url}‘ );

In case you only want to override css in template.css, please add new css file into assets/css/your_file.css and add this code below line 148:

+148    wp_enqueue_style( ‘dw_focus_template’, get_template_directory_uri().’/assets/css/template.css’ );
+149    wp_enqueue_style( ‘dw_focus_template’, get_template_directory_uri().’/assets/css/your_file.css’ );
Let me know if you need further assistance

Best regards 

answered 11 years ago

Jennifer, what is the name of the file in “yoursite/wp-content/themes/dw-focus”???. You say to go to line 148, but it’s a folder not a file, right?

answered 11 years ago

nevermind. It’s in functions.php.

Powered by DW Question & Answer Pro