Conditional breadcrumbs image - by Hoellwarth

This topic has 7 replies, 4 voices, and was last updated 8 years, 4 months ago ago by Eva Kemp

  • Avatar: Hoellwarth
    Hoellwarth
    Participant
    November 25, 2015 at 10:17

    Hi all,

    My customer would like to have a different Breadcrumbs Image for each different product brand. Taking a look at woo.php and breadcrumbs.php I’m not getting any clue on how the taxonomy is handled. Furthermore, since Brand is a custom taxonomy, where should I look at?

    I aim to create something like this:

    <?php if( is_brand (‘BRAND NAME 1’)) {
    echo ““;
    }
    elseif ( is_shop(”) || is_woocommerce(”) || is_single(”) || is_category(”) ) {
    echo etheme_logo();
    }
    ?>

    Thanks in advance for any support you may give me.

    6 Answers
    Avatar: stan
    Stan Russell
    Participant
    November 25, 2015 at 12:01

    Hello Hoellwarth,

    unfortunately our theme does not have this feature by default. It requires additional customization which lays beyond the scope of our basic support.

    Regards,
    Stan Russell.

    Avatar: Hoellwarth
    Hoellwarth
    Participant
    November 25, 2015 at 12:03

    Hi Stan,

    So can’t you tell me in which file I have to put the condition? -.-

    Avatar: Brian Johnson
    Brian Johnson
    Member
    November 25, 2015 at 13:36

    Hello

    Please search for breadcrumbs in wp-content/royal/index.php.

    Regards,
    Brian Johnson

    Avatar: Hoellwarth
    Hoellwarth
    Participant
    November 25, 2015 at 14:20

    Hello,

    Thank you Brian but that was not the right file to look at. I solved by myself writing a function in which, for each different product brand (so a custome taxonomy) a different background image will be displayed. The right file to edit is breadcrumbs.php inside the Woocommerce/global folder.

    I’d like to write a tutorial in order to give customer a more flexible theme customization but well, as Stan Russell said, is beyond the scope of the basic support.

    Contact me in private for further details. Email address is in private content.

    Regards.

    Please, contact administrator
    for this information.
    Avatar: Brian Johnson
    Brian Johnson
    Member
    November 25, 2015 at 15:06

    Hello

    We are glad that you have found the different solution for woocommerce breadcrumbs customization. You may post your answer in suggestion and proposals. Please be free to contact us in case any further assistance is needed.

    Regards
    Brian Johnson

    Avatar: Eva
    Eva Kemp
    Support staff
    November 25, 2015 at 15:06

    Hello,

    Thank you for the information.
    We’re glad you’ve managed to resolve the problem.

    Have a nice day.

    Regards,
    Eva Kemp.

  • 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.