Home › Forums › Jevelin Theme › Changing breadcrumb 'Projects'
Home › Forums › Jevelin Theme › Changing breadcrumb 'Projects'
Hi Guys,
I’m trying to figure out where did u declare the ‘Projects’ name in the breadcrumb.
I would like to keep the current ‘project’ permalink structure, and change only the ‘Projects’ word in the portfolio breadcrumb.
Picture attached.. Thanks 🙂
Hi @adir,
I hope you are well today and thank you for your question.
It is created dynamically in the theme file /jevelin/inc/helpers.php on line number 1800.
If you tell me specifically with which word you want to replace ‘Projects’ then i can help you accordingly to achieve it.
Best regards,
Shufflehound team
Thanks buddy, I feel great (:
Sorry for the delay..
Base on this row:
$html .= ‘<span class=”item-cat item-custom-post-type-‘ . esc_attr( $post_type ) . ‘”>labels->name ) . ‘”>’ . esc_attr( $post_type_object->labels->name ) . ‘</span>’;
Let’s say i wanna move from ‘Projects‘ to ‘prj‘, how can this achieved?
It looks like a taxonomies isn’t? Is there a way to change it outside instead of messing with the file content (with a hook)?
Thank you again (:
Adir
You have to change following code on that line.
esc_attr( $post_type_object->labels->name )
To make this change theme update proof please copy the whole function jevelin_breadcrumbs code which contains the above code and add it in the functions.php file of your child theme then make the necessary changes in your copied child theme code.