How to change the product categories header images

6 replies2 participantsUpdated by Jack Richardson

  • Avatar: agustin
    agustin
    Participant

    I have added a custom field to add background images to the page-heading of pages…

    this works perfectly, I located the code in theme-functions.php

    
       <div class="page-heading bc-type-<?php esc_attr_e( $l['breadcrumb'] ); ?>"style="background-image: url('<?php the_field('imagen_cabecera_jamdx'); ?>');">
    

    it works ONLY with the pages… the field that appears when editing a woocommerce category, is not appearing in the front end.

    can you kindly point me where is the file / code I need to edit to add this same custom field to be used as background image for the categories?

    thank u guys I love the theme,

    6 Answers

    Avatar: Jack Richardson
    Jack Richardson
    Support staff

    Hello,

    You can add background image in header for product categories in WP Dashboard > Products > Categories > edit a category > Category Header.

    Best regards,
    Jack Richardson.

    Avatar: agustin
    agustin
    Participant

    Hi, thanks for your reply. this does not do what I want.

    please help me to understand how the theme is built so I can customize.

    http://i61.tinypic.com/28gtv6f.png

    Avatar: agustin
    agustin
    Participant

    what I want to do is to put a background image behind the title… this is a customisation, I know, i kindly ask your you guidance just to find the file that renders this part of the category page… in the normal wp pages I have managed to find and implement.

    but i cannot find the file or code that does the same for categories…

    Avatar: Jack Richardson
    Jack Richardson
    Support staff

    Hello,

    You need edit the file wp-content/themes/woopress/woocommerce/global/breadcrumb.php.

    Best regards,
    Jack Richardson.

    Avatar: agustin
    agustin
    Participant

    hi jack, i have tried but this is not working…
    is there anything Im missing? seems that the fiels show empty when I call them from that file….

    how can it be that is possible to change the breadcrumb backgrund for single pages but not for categories? this should be ammended in next updates of the theme…

    :/

    Avatar: Jack Richardson
    Jack Richardson
    Support staff

    Hello,

    Please provide us with WP Dashboard and FTP credentials and specify what code you’re trying to add.

    Best regards,
    Jack Richardson.

Want to reply? Log in, or register with your ThemeForest purchase code, to reply to this topic.

Login / Register