I wanted to add a static text with a link in front of my category page and product page breadcrumbs.
Existing Breadcrumbs:
Home > Category > Sub Category > Sub Category
How I want it to be
Home > Static Text with link > Category > Sub Category > Sub Category
Remember, my cms pages breadcrumbs need to remain as they are. Not like above.
Best Answer
You need to make changes in the below file.
see above and make the necessary changes in the same file. Note: it will be preferable if you can override this file. How to override .phtml files in Magento 2 Also, change href link and title on the above code. To check if the current page is cms page or category page Magento 2.2.2 how to check if current page is a CMS page in .phtml file?