1

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 '17 at 20:25
2

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:

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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