Title: ChildTheme CSS cancel 1?
Last modified: August 20, 2016

---

# ChildTheme CSS cancel 1?

 *  [ferdri3](https://wordpress.org/support/users/ferdri3/)
 * (@ferdri3)
 * [14 years ago](https://wordpress.org/support/topic/childtheme-css-cancel-1/)
 * Hello,
 * I was thinking about disabling
 *     ```
       #primary,
       #secondary {
       	float: right;
       	overflow: hidden;
       	width: 220px;
       }
       ```
   
 * but how do I do this in a CSS childtheme? Is placing /**/ around it in a child
   CSS effective?

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

 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [14 years ago](https://wordpress.org/support/topic/childtheme-css-cancel-1/#post-2747917)
 * What do you mean by disable? What are you trying to do?
 *  [Digital Raindrops](https://wordpress.org/support/users/adeptris/)
 * (@adeptris)
 * [14 years ago](https://wordpress.org/support/topic/childtheme-css-cancel-1/#post-2747920)
 * What elements are you trying to overwrite, if you hide the sidebar you will then
   have to change the template margin or you will have a big space?
 * A little more information as to which template page you want to loose the sidebar
   on?
 * If you go to Appearance > ‘Theme Options’ you can choose a different layout!
 * **Using a style to change a class in a child theme:**
    Change the float in a 
   Child Theme:
 *     ```
       #primary,
       #secondary {
       	float: left;
       }
       ```
   
 * Change the width:
 *     ```
       #primary,
       #secondary {
       	width: 260px;
       }
       ```
   
 * Hide it:
 *     ```
       #primary,
       #secondary {
       	display: none;
       }
       ```
   
 * HTH
 * David
 *  Thread Starter [ferdri3](https://wordpress.org/support/users/ferdri3/)
 * (@ferdri3)
 * [14 years ago](https://wordpress.org/support/topic/childtheme-css-cancel-1/#post-2747922)
 * thanks for the replies,
 * I want to lose the sidebar on all templates, which means I need to change the
   sidebar.php.. which I did..
 * The real question I wanted to ask is how to override a style in a childtheme 
   when you dont want an element.
 * like this:
 *     ```
       #primary,
       #secondary {
       	float: right;
       	overflow: hidden;
       	width: 220px;
       }
       ```
   
 * Lets say I copy this to my childtheme because I dont want a width of 220px.. 
   I want no width actually.. Can I remove that width code? or will it (if I remove
   it) be copied automatically from the parent theme?
 *  [Digital Raindrops](https://wordpress.org/support/users/adeptris/)
 * (@adeptris)
 * [14 years ago](https://wordpress.org/support/topic/childtheme-css-cancel-1/#post-2747927)
 * In Theme Options:
    Go to: Admin > Appearance > Theme Options Choose option: Default
   Layout > One column No Sidebar Then: Save Changes
 * In Child theme Stylesheet:
 *     ```
       #primary,
       #secondary {
       	display: none;
       }
       ```
   
 * HTH
 * David

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

The topic ‘ChildTheme CSS cancel 1?’ is closed to new replies.

 * 4 replies
 * 3 participants
 * Last reply from: [Digital Raindrops](https://wordpress.org/support/users/adeptris/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/childtheme-css-cancel-1/#post-2747927)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
