Title: Problems with child theme
Last modified: August 21, 2016

---

# Problems with child theme

 *  Resolved [codde](https://wordpress.org/support/users/codde/)
 * (@codde)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/problems-with-child-theme-2/)
 * I’m using a child theme for some little modifications on the theme.
    Everything
   works fine but I want to use some transparency for the background. I’ve found
   the line where the background is set but I wasn’t able to modify this correctly.
   The function I used is: rbga(255,255,255,0,9)
 * Hope you know what I mean and somebody could help me.

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/problems-with-child-theme-2/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/problems-with-child-theme-2/page/2/?output_format=md)

 *  [Maria Antonietta Perna](https://wordpress.org/support/users/antonietta456/)
 * (@antonietta456)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/problems-with-child-theme-2/#post-4752985)
 * Hi Codde,
 * you have one comma too many. Try this:
 *  `rbga(255,255,255,0.9);`
 *  Thread Starter [codde](https://wordpress.org/support/users/codde/)
 * (@codde)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/problems-with-child-theme-2/#post-4753188)
 * Hi Antonietta,
 * thanks, you’re right, my fault (but only in the post, in the code it was correct
   🙂 )
    My problem is how to bring in the function in my child theme. Do you ahve
   any experience with child themes?
 *  [Maria Antonietta Perna](https://wordpress.org/support/users/antonietta456/)
 * (@antonietta456)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/problems-with-child-theme-2/#post-4753196)
 * If you refer to the css above, you need to find the html elements you want to
   apply your styles to, and write the css rule in style.css in your child theme.
   If you’d like me to be more specific, I need a link to your web page. Have you
   already got a child theme? This Codex article is helpful if you need a tutorial
   on how to do so: [https://codex.wordpress.org/Child_Themes](https://codex.wordpress.org/Child_Themes)
 * Let me know if you solve the issue, or enter a link so I hopefully I can be of
   more assistance.
 *  Thread Starter [codde](https://wordpress.org/support/users/codde/)
 * (@codde)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/problems-with-child-theme-2/#post-4753201)
 * Yes, I’m refering to some other css.
    I’m not sure whether I can put the transparency
   in the css.
 * My productive site is here [ffw-gerstetten.de](http://www.ffw-gerstetten.de)
 *  [Maria Antonietta Perna](https://wordpress.org/support/users/antonietta456/)
 * (@antonietta456)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/problems-with-child-theme-2/#post-4753203)
 * Yes, the transparency is CSS code, an alternative way of defining color rules
   in CSS. With firebug I’ve found that you’ve already applied the transparency 
   for the main content in this code:
 *     ```
       #main {
           background-color: rgba(255, 255, 255, 0.8);
       }
       ```
   
 * What did you use to write the CSS rule, a custom CSS option or plugin? If you
   want to add it in the child theme, simply add it in style.css in your child theme.
   You can add it anywhere, and it’ll work, however, it’s preferable to add a section
   that has all the styles for the main content so it’d be easier to keep track 
   of your styles. Also, make sure that the inline style that you have added is 
   deleted because it takes precedence over the stylesheet.
 *  Thread Starter [codde](https://wordpress.org/support/users/codde/)
 * (@codde)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/problems-with-child-theme-2/#post-4753206)
 * The line you’ve found is hard coded in the theme but not in the child theme. 
   Because I don’t want to edit the template each time it has been updated I decided
   to use the child theme and only modify those things I want to make different.
   
   Currently there are only these settings in the only file “style.css”:
 *     ```
       #access {
         margin: 0px auto 0;
       }
   
       #main {
         margin-top: 0px;
         // background-color: rgba(255, 255, 255, 0.9);
       }
       ```
   
 *  [Maria Antonietta Perna](https://wordpress.org/support/users/antonietta456/)
 * (@antonietta456)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/problems-with-child-theme-2/#post-4753211)
 * Using a child theme is the recommended choice, I thought you were already using
   it and that your site was already using the child. The CSS looks good. The background
   rgba color rule will apply the transparency in the main area (obviously, you’ll
   remove the double slashes //). At the moment is a very low transparency. You 
   can increase the value by decreasing the number 9 (ex.: .8, .6, etc.). Changes
   in the child override the parent’s code. Have you tried how it’s working? Is 
   there anything else you need to modify? Is there any other area of the site where
   you want to apply different styles?
 *  Thread Starter [codde](https://wordpress.org/support/users/codde/)
 * (@codde)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/problems-with-child-theme-2/#post-4753212)
 * I’ve already created a child theme with the modified css above.
    But the transparancy
   doesn’t work properly (of course I’ve tested this not commented out)
 *  [Maria Antonietta Perna](https://wordpress.org/support/users/antonietta456/)
 * (@antonietta456)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/problems-with-child-theme-2/#post-4753216)
 * Could you be more specific? It’s not being applied, it’s being applied to the
   wrong element? Is everything else working in the child theme?
 *  Thread Starter [codde](https://wordpress.org/support/users/codde/)
 * (@codde)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/problems-with-child-theme-2/#post-4753222)
 * Sure, so from the beginning…
    I’ve got a copy of the site for testing. There 
   I did the lastest update for my theme so the hardcoded changes was overwritten.
   Then I created a child theme with the css you’ll find above. the two changes 
   for #access (margin) and #main (margin-top) are working but not the background-
   color.
 *     ```
       #access {
         margin: 0px auto 0; // working
       }
   
       #main {
         margin-top: 0px; // working
         background-color: rgba(255, 255, 255, 0.9); // not working
       }
       ```
   
 * Maybe it will be easier to take a look but for this I have to register you on
   the site.
 *  [Maria Antonietta Perna](https://wordpress.org/support/users/antonietta456/)
 * (@antonietta456)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/problems-with-child-theme-2/#post-4753224)
 * Is your development copy accessible online? If it is, I could still tweak things
   with firebug.
 *  Thread Starter [codde](https://wordpress.org/support/users/codde/)
 * (@codde)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/problems-with-child-theme-2/#post-4753225)
 * Yes, it is online available: [http://testseite.ffw-gerstetten.de/](http://testseite.ffw-gerstetten.de/)
   
   If you need more access then reading let me know it.
 *  [Maria Antonietta Perna](https://wordpress.org/support/users/antonietta456/)
 * (@antonietta456)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/problems-with-child-theme-2/#post-4753228)
 * The problem is that the inline style is still being displayed and overrides the
   stylesheet. I wonder if it’s an option that’s been set via a plugin or an option
   panel, that can be deleted from the admin panel.
 * I added !important at the end of the rule and seemed to work in firebug:
 *     ```
       #main {
         margin-top: 0px; // working
         background-color: rgba(255, 255, 255, 0.9)!important;
       }
       ```
   
 * See how it goes.
 *  [Maria Antonietta Perna](https://wordpress.org/support/users/antonietta456/)
 * (@antonietta456)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/problems-with-child-theme-2/#post-4753273)
 * Hi Codde, how did it go?
 *  Thread Starter [codde](https://wordpress.org/support/users/codde/)
 * (@codde)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/problems-with-child-theme-2/#post-4753276)
 * Sorry, I wasn’t able to answer.
    I’ve testet what you wrote and I must say: YOU’RE
   RIGHT! I works now very fine 🙂 Thanks a lot for your help and patience!

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/problems-with-child-theme-2/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/problems-with-child-theme-2/page/2/?output_format=md)

The topic ‘Problems with child theme’ is closed to new replies.

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

## Tags

 * [child](https://wordpress.org/support/topic-tag/child/)

 * 16 replies
 * 2 participants
 * Last reply from: [Maria Antonietta Perna](https://wordpress.org/support/users/antonietta456/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/problems-with-child-theme-2/page/2/#post-4753279)
 * Status: resolved