How to change the product categories header images

This topic has 7 replies, 2 voices, and was last updated 8 years, 7 months ago ago by Jack Richardson

  • Avatar: agustin
    agustin
    Participant
    August 5, 2015 at 22:11

    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
    August 6, 2015 at 07:35

    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
    August 6, 2015 at 09:20

    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
    August 6, 2015 at 09:21

    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
    August 6, 2015 at 10:02

    Hello,

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

    Best regards,
    Jack Richardson.

    Avatar: agustin
    agustin
    Participant
    August 6, 2015 at 10:45

    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
    August 6, 2015 at 18:52

    Hello,

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

    Best regards,
    Jack Richardson.

  • Viewing 7 results - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.