Edit breadcrumb file to change taxonomy

Hello!, we are working on a site under x-theme. Wonderful theme!.

Since the site requires different customizations, we’re working with the child-theme, and now, we’re trying to edit the breadcrumb file to change two different things (both for the “current” item):

  1. add “h1” tag inside of the “a” tag for the current page, for SEO purpose.
  2. Change title of the “current” element, from “You are are” to “Usted está aquí” (spanish).

Looking for the place to do this, we found a file under “/themes/x/framework/functions/frontend/breadcrumbs.php” and replicated the whole “functions” folder into same path but for child-theme.

In this breadcrumbs.php, we found the sentence “You are here” and replace it. Also we found, in the output for breadcrumb, something that calls


if ( ! function_exists( ‘x_get_breadcrumb_current_before’ ) ) :
function x_get_breadcrumb_current_before() {
return ‘’;
}
endif;

if ( ! function_exists( ‘x_get_breadcrumb_current_after’ ) ) :
function x_get_breadcrumb_current_after() {
return ‘’;
}
endif;

That we tried to edit, but replacing these things do not show on the site.

Could you please help me find the right file to make these edits? or the right way to do it?

Thank you very much.

Hi Julio,

Thank you for writing in, no you can’t copy a function file to a child theme, custom functions should go to your child theme’s functions.php file. Please follow the Customization Best Practices guide. Regretfully, we can not provide support for custom coding.

You can follow this posts for translation.

Cheers!

Hello Friech.
Ok, I understand.

Thanks :slight_smile:

You’re most welcome.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.