Title: Child theme and style
Last modified: August 21, 2016

---

# Child theme and style

 *  Resolved [Luigi Rosa](https://wordpress.org/support/users/lrosa/)
 * (@lrosa)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/child-theme-and-style/)
 * Hi,
    I am using raindrops as a master theme for a custom child theme for my blog.
 * Raindrops embeds some styles in the HTML generated code (`<style type="text/css"
   id="raindrops-embed-css">` container), so I cannot override the settings in the
   embedded style.
 * Is there a way to override that CSS ina achild theme?
 * I am now trying to override the background colour of comment boxes, but I will
   need to override other styles.
 * How can I do this without modifying the raindrops files?
 * Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Theme Author [nobita](https://wordpress.org/support/users/nobita/)
 * (@nobita)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/child-theme-and-style/#post-4544893)
 * Hi lrosa
    You should use strong Specificity CSS rules
 * Override with CSS example below.
 *     ```
       #comments a{
       	color:blue;
       }
       #comments form{
       	background:yellow;
       	color:black;
       }
       #comments input[type="submit"]{
       	background:red;
       }
       #comments #respond textarea#comment{
       	background:green;
       }
       ```
   
 * if you can use PHP Script
 * Raindrops can Create a your own Color Type.
 * for example
 * Add to functions.php at child theme
 * add_action( ‘after_setup_theme’, ‘child_theme_setup’,11 );
 *     ```
       <?php
       function child_theme_setup(){
       	raindrops_register_styles("original");
   
       	function raindrops_indv_css_original(){
       	$font_color = raindrops_warehouse_clone('raindrops_default_fonts_color');
       	$style=<<<CSS
       	a{color:yellow;}
       	body{background:#000;color:#fff;color:$font_color;}
   
       CSS;
       	return $style;
       	}
       }
       ?>
       ```
   
 * function name needs raindrops_indv_css_ + color type name
 * If you add this code, you will be able to choose customizer and theme options
   page, a new original color type
 * Thank you.
 *  Thread Starter [Luigi Rosa](https://wordpress.org/support/users/lrosa/)
 * (@lrosa)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/child-theme-and-style/#post-4544908)
 * Than you for your kind answer!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Child theme and style’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/raindrops/1.700/screenshot.png)
 * raindrops
 * [Support Threads](https://wordpress.org/support/theme/raindrops/)
 * [Active Topics](https://wordpress.org/support/theme/raindrops/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/raindrops/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/raindrops/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Luigi Rosa](https://wordpress.org/support/users/lrosa/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/child-theme-and-style/#post-4544908)
 * Status: resolved