i am using a magento theme and want to change the categories header color. is there any custom css code or method to change the same ?

( image attached )enter image description here

  • You should inspect with firebug or chrome dev tools and find the CSS classes related to these areas so you can update them.
    – Steven J
    Dec 4, 2017 at 20:25

1 Answer 1


You can use category page body class for Header background color. Please see below exmple:

.catalog-category-view .page-header {background-color: #ff5000;}

Or You can add custom class for category page to adding jQuery on list.phtml file

JS Content:

    ], function($) {
            $("body").addClass("<?php echo __('your-custom-class-here');?>");

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.