Title: Child theme CSS code won&#039;t replace parent CSS
Last modified: August 22, 2016

---

# Child theme CSS code won't replace parent CSS

 *  [plusthekids](https://wordpress.org/support/users/plusthekids/)
 * (@plusthekids)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/child-theme-css-code-wont-replace-parent-css/)
 * Hi, I am a newbie and am slowly working through learning how to create a wordpress
   child theme from a theme that I have bought at Elegant Themes.
    I have created
   the child theme following instructions via the Codex etc online and am now trying
   to change something basic on the front of my webpage – i.e. move the tagline 
   from the left to the right of the page. I feel as though I have done everything
   right, identified the CSS line in the parent file and copied/pasted that to my
   child CSS file, changed it in the child file but for some reason the change still
   not does happen on the site. The child theme is activated. I am obviously missing
   something basic but for the life of me I can’t work it out! Would really appreciate
   any help! My site is not live so I can’t link it sorry. But is there anything
   glaringly obvious in my code below? I’ve read and reread and amended after following
   other threads on this forum but just can’t find the problem. Thanks so much in
   advance.
 *     ```
       /*
        Theme Name:   Chameleon child
        Theme URI:    http://www.elegantthemes.com/gallery/chameleon/
        Description:  Chameleon child theme
        Author:
        Author URI:   http://www.elegantthemes.com
        Template:     Chameleon
        Version:      1.0.0  
   
       */
   
       @import url("../Chameleon/style.css");");
   
       /* =Theme customization starts here
       -------------------------------------------------------------- */
   
       /* Overriding the slogan style from the Parent Theme */
   
       p#slogan { float: right; font-size: 12.5px; color: #66929c; text-transform: uppercase; padding-top: 0px; margin-left: -143px; margin-top: 27px; font-family: 'Kreon', Arial, sans-serif;}
       ```
   

The topic ‘Child theme CSS code won't replace parent CSS’ is closed to new replies.

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [plusthekids](https://wordpress.org/support/users/plusthekids/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/child-theme-css-code-wont-replace-parent-css/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
