2

How to change the text SHOP BY from left sidebar at category page in Magento?

I want to change this text SHOP BY to another.

2

I found the solution for my own question.

To get this Please open this path:

Magento 1 :

app/design/frontend/default/YOURTHEME/template/catalog/layer/view.phtml

Change the class name "block-title" to something else.

Magento 2x:

vendor/magento/module-layered-navigation/view/frontend/templates/layer/view.phtml  

Copy to Theme Path

app/design/frontend/Smartwave/porto_child/Magento_LayeredNavigation/templates/layer/view.phtml

Change Code:

div class="block-title filter-title">
            <strong><?= $block->escapeHtml(__('Shop By New Text Here..')) ?></strong>
        </div>
| improve this answer | |
  • 2
    Asked the question and next minute answering.OMG – Mujahidh Mar 30 '16 at 11:31
  • Actually, Brother. I am searching for this from last two days. I got the answer today. I thought, someone is also struggling with this. So i posted this. – Teja Bhagavan Kollepara Mar 30 '16 at 11:33
  • @TejabhagavanKollepara brother in this community every one is there to help.and like to establish the quality of the forum. That's why +1 and -1.not for personal issues.thanks for the good heart to share your knowledge :) – Mujahidh Mar 30 '16 at 12:27
  • when i want to change text from shop by to shop by category, i found this. thank you. i upvoted this – user51829 Jul 18 '17 at 9:22
  • Any chance you could kindly update your answer to include Magento 2.2.x. Thank you. – Mohammed Joraid Aug 8 '18 at 22:38
1

More than that if you want to change anything in Magento just go to System -> Configuration -> Advance -> Developer then select your store view from right sidebar in a Magento admin and enable Template Path Hints then follow the path in frontend and edit in the particular file whatever you want

| improve this answer | |
  • This path may help to get the solutions like above question. i upvoted this. – Teja Bhagavan Kollepara Jul 5 '16 at 4:28
  • For the sake of accessibility, I will leave this line here. In my case, most likely I will have a terminal session opened rather than the Admin page. You man also enable Template Path Hints using CLI: To enable: php bin/magento dev:template-hints:enable To disable: php bin/magento dev:template-hints:disable – Mohammed Joraid Aug 8 '18 at 22:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.