• 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)
  • What do you mean by disable? What are you trying to do?

    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

    (@ferdri3)

    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?

    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.