CSS not working in child theme
-
I had successfully made a child theme and worked on it. When my website was completed i copied “content.php” and “functions.php” from my parent theme to child theme i order to make a backup (in which i was wrong).
Now i found that content.php and functions.php should not be copied to child theme only style.css is necessary. when i delete those files from my child theme ,my style.css stopped working now . please help me….i tried to make a fresh copy of ” functions.php” file in my child theme but when i tried to enqueue it using:add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' ); function enqueue_parent_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' ); }the error has shown up :
add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' ); function enqueue_parent_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' ); } Warning: Cannot modify header information - headers already sent by (output started at /home1/aliraza7/public_html/wp-content/themes/twentythirteen-child/functions.php:4) in /home1/aliraza7/public_html/wp-includes/pluggable.php on line 1178please help me ASAP i dont wana loose my work all again.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘CSS not working in child theme’ is closed to new replies.