This topic has 7 replies, 4 voices, and was last updated 8 years, 12 months ago ago by Eva Kemp
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.
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.
Hi Stan,
So can’t you tell me in which file I have to put the condition? -.-
Hello
Please search for breadcrumbs in wp-content/royal/index.php.
Regards,
Brian Johnson
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.
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
Hello,
Thank you for the information.
We’re glad you’ve managed to resolve the problem.
Have a nice day.
Regards,
Eva Kemp.
Tagged: breadcrumbs, conditional, image, themes, woocommerce, wordpress
You must be logged in to reply to this topic.Log in/Sign up