I'm working on a site that has a design for parent categories and a different design for sub-categories. The only difference, at the moment, is the CSS. The sub-category has CSS that overrides the parent category's CSS.

I realize I could use the Layout Update XML, but would prefer to make it easier for the end user by just selecting a Layout from the drop-down. I tried creating my own layout, but the page layouts are only containers and catalog_category_view.xml applies to all categories.

Is there a way to create a new Layout that also updates the CSS? Thanks!

1 Answer 1


The easiest is to have two themes, one for each category and the subcategory create the desired design there, and you can change the admin backend theme to load on that category or subcategory

  • Thanks. That's what I did, but it seemed overkill for something that seems like it would be simple on any other platform. Also there was some CSS that was getting hard to mange between the two.
    – Aaron
    Jan 18, 2017 at 5:46
  • You create fallback of parent theme ?
    – St3phan
    Jan 20, 2017 at 22:25
  • Yes, but it doesn't seem to work well with setting extends, for instance web/css/soruce/_navigation_extend.less. It works on the parent theme but not the child theme, and I don't have anything else overwriting it.
    – Aaron
    Jan 24, 2017 at 0:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.