0

Please, forgive me for the probably dumb question but this the first time I use Magento. I have been asked to make a simple change to an existing page (insert a few words of text). I have been granted access to the system through a web interface. After a couple of hours of "navigating" the Contents, I found that the page I need to access is activated by the following block

{{block class="Magento\Framework\View\Element\Template"template="Magento_Theme::storelocator/XXXXXX.phtml"}}

XXXXXX is a specific name that I prefer to anonymize. My questions are: How do I find the "real" code (the XXXXXX.phtml) file? Is it available and possibly editable from the same web interface? Or do I need to have the original file, modify it and upload (where in this case)? Thanks in advance for any help, Mario

1 Answer 1

0

You will find this code in Magento_Dir/vendor/magento/module-theme/view/frontend/templates/storelocator/XXXXX.phtml

If this help then hit like.

Thank you Hiren Patel

5
  • But you can not edit code in this file because this is not good as per Magento standard. Oct 9, 2020 at 16:46
  • You have to copy this file in app/design/frontend/vendor_name/theme_name/Magento_Theme/templates/storelocator/XXXXXXX.phtml and there you can edit as prr your need. Oct 9, 2020 at 16:49
  • Thanks a lot! This is already very useful but my problem is also IF I can access that path from the web interface (that is through the browser) or if direct access to the host is required. If it is possible through the web interface, how do I find that file? Thanks again! Oct 9, 2020 at 16:56
  • You can detect path of phtml file but you can not edit it through web interface. For detect a path through web interface mageplaza.com/kb/… If this help you then hit like Oct 9, 2020 at 17:05
  • 1
    Thanks! I accepted the answer. I hope it is equivalent to hit like. Thanks again! Oct 9, 2020 at 17:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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