css - remove styling from child theme -
i using wordpress , delete aspect of parent theme's style, not want touch parent theme's styles.css. remove element child theme's style sheet, how that?
right child theme calls on parent theme styles through
@import url("../parenttheme/style.css"); now want remove whole section of
@media screen , (max-width: 767px) { .container { max-width: 95% } .sidebar-container { padding: 0; margin-top: 50px; } .masthead-right { display: none } .single-nav { position: inherit; top: auto; right: auto; margin: 20px 0 0; } .single-nav-left, .single-nav-right { margin-left: 0; margin-right: 3px; } .comment-list .children { margin-left: 0 } #copyright, #footer-menu { text-align: center } #footer-menu ul { float: none; margin-top: 5px; } #footer-menu li { float: none; display: inliene; display: inline-block; margin-left: 0; margin-right: 10px; } .related-posts .span_6, .related-posts .span_18, .related-posts .span_8 { width: 100%; padding: 0; } .related-posts .span_8, .related-posts .span_6 { margin-bottom: 1.5em } .tax-archives-filter { position: inherit; position: relative; top: auto; right: auto; margin: 30px 0 0; } .tax-archives-filter > li { width: 100%; box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; } .tax-archives-filter { position: absolute; top: 50%; margin-top: -5px; right: 13px; } } in parent theme styles calling on , nulling child theme.
if need reset particular line, set
.masthead-right{ float:none; } a word of advise, never work on parent css. alter child theme css or add new custom.css , declare directly below css wish overwrite.
edit
just refreshed , noticed gaynorvader suggested same...
Comments
Post a Comment