This topic has 6 replies, 4 voices, and was last updated 9 years, 2 months ago ago by Robert Hall
Hi,
Can I adjust the woocommerce breadcrumbs to remove the current page, so the current page is only shown in the heading below. Example https://www.8theme.com/demo/woopress/kids/product/fashion-demo-18/
Home / Kids / Fashion Demo changes to Home / Kids
Fashion Demo Fashion Demo
Hello
Do you want to remove word “kids”?
Regards,
Brian Johnson
Hi,
No i want to remove Fashion demo i.e the current page name.
Hello,
you need to edit file woopress\framework\theme-functions.php, find there function
if(!function_exists('etheme_breadcrumbs')) {
function etheme_breadcrumbs() {
$showOnHome = 0; // 1 - show breadcrumbs on the homepage, 0 - don't show
$delimiter = '<span class="delimeter">/</span>'; // delimiter between crumbs
$home = __('Home', ETHEME_DOMAIN); // text for the 'Home' link
$blogPage = __('Blog', ETHEME_DOMAIN);
$showCurrent = 1; // 1 - show current post/page title in breadcrumbs, 0 - don't show
$before = '<span class="current">'; // tag before the current crumb
$after = '</span>'; // tag after the current crumb
and change part $showCurrent = 1;
to $showCurrent = 0;
To avoid possibility of breaking theme we recommend you to make this customization in Child theme.
Read here more about it: https://codex.wordpress.org/Child_Themes
Regards,
Stan Russell.
Thanks Stan,
That’s exactly what I was looking for, Cheers.
Hello,
You’re welcome!
Regards,
Robert Hall.
The issue related to '‘Change breadcrumbs’' has been successfully resolved, and the topic is now closed for further responses