i want to change the header image


i want to change the header image of this links:





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:


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

  • Uttam Kumar
    • Site Builder, Child of Zeus

    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,


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.