i want to change the header image

Hello,
i want to change the header image of this links:
http://www.nosahealthcare.com/categoria/pies/
http://www.nosahealthcare.com/categoria/propolea/
http://www.nosahealthcare.com/categoria/acn-free/
http://www.nosahealthcare.com/categoria/higienizantes/

i want to put a different image in each link. They are woocommerce category pages, i think.
Another developer couild archieve this in this url:
http://www.nosahealthcare.com/categoria/prevenir-piojos/

Can you please give me the steps i must do? Thank you in advance.

  • Uttam Kumar

    Hello Pablo,
    I hope you are doing well today!

    You can do it by adding the following code. Go to your active theme's category archive page and change your header image code by following way.

    <?php $header_image = get_header_image();
    if(    is_category( 'basball' ) )  : ?>
    <img src="banner1.jpg" alt="baseball"/>
    <?php elseif( is_category( 'football' ) )  : ?>
    <img src="banner2.jpg" alt="football"/>
    <?php elseif( ! empty( $header_image ) ) : ?>
        <a>"><img src="<?php echo esc_url( $header_image ); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" /></a>
    <?php endif; ?>

    Or you can also use https://wordpress.org/plugins/woocommerce-category-banner/ plugin if you want.

    If there is anything else we can help you with let us know. Have a great day!

    Kind Regards,
    Uttam