I was also looking for solution just similar to your problem... I came through several solution but nothing works for me. Following are some of the solution that i tried and it did work for me.
1 - Create a new file named catalog_category_view.xml within your theme's layout folder:
Quotethemes/enchanted/layout/catalog_category_view.xml
2 - Add the following XML code to this file. This injects a new UI component (title) before the existing category title, allowing you to set your custom title: Details here: GWA Calculator
Quote<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceContainer name="main">
<uiComponent name="category.view">
<block class="Magento\Framework\View\Element\Template" name="category_custom_title" after="page.main.title" template="Magento_Catalog::category/custom_title.phtml" />
</uiComponent>
</referenceContainer>
</body>
</page>
3 - Create a new template file named custom_title.phtml within your theme's Magento_Catalog folder:
Quotethemes/enchanted/Magento_Catalog/category/custom_title.phtml
4 - Add the following code to this template file. This simply displays your desired title:
Quote<div class="category-custom-title">
<h1>Shop by Category</h1>
</div>