Skip to:
Content
Pages
Categories
Search
Top
Bottom

Child Themes – Best Practice

  • @heusdens

    Member

    Good Day

    I want your views on best practice for creating child themes especially around adjusting the CSS. The guide as published on this site is not really that explicit.

    So my question is, if you have a child theme, how do you handle your CSS?

    I’ve been working in a way that, I take the contents of the style.css located in wp-contentpluginsbuddypressbp-themesbp-default_inccss and copy that to the style.css in my child theme (I also delete the @import url( ../../plugins/buddypress/bp-themes/bp-default/_inc/css/default.css );

    Your opinions please…

Viewing 1 replies (of 1 total)
  • @r-a-y

    Keymaster

    Some recommend copying the default CSS over to your stylesheet.

    Benefits of this approach is one less data request and full control over your styles (good when you’re designing a completely different look from bp-default).

    Negative is if your child theme completely relies on the bp-default theme with little design changes, you might as well use the @import- declaration so you can easily override selected style declarations on a case-by-case basis. Some theme designers frown upon using !important, but at the end of the day, it’s your call.

Viewing 1 replies (of 1 total)
  • The topic ‘Child Themes – Best Practice’ is closed to new replies.
Skip to toolbar