0

I have added the custom template in footer. It displayed in all page .But in view page its throwing

     1 exception(s):
Exception #0 (Magento\Framework\Exception\ValidatorException): Invalid template file: 'Magento_Theme::html/footer/trustworthy.phtml' in module: '' block's name: 'trust.shy'

In default.xml:

<referenceContainer name="footer-container">
 <block class="Magento\Framework\View\Element\Template" name="trust.shy" template="Magento_Theme::html/footer/trustworthy.phtml" after="subscribe.container"/>
</referenceContainer>

Added template in following path /var/www/html/magento/app/design/frontend/OX/shy/Magento_Theme/templates/html/footer/trustworthy.phtml

If any thing i want to change it ...

thanks.

2
  • Check your theme is OX/shy and do the cache flush properly
    – Amit Bera
    Commented Feb 22, 2019 at 5:52
  • still not working
    – Mahi M
    Commented Feb 22, 2019 at 6:01

1 Answer 1

0

Try this:

<referenceContainer name="footer-container">
 <block class="Magento\Framework\View\Element\Template" name="trust.shy" template="html/footer/trustworthy.phtml" after="subscribe.container"/>
</referenceContainer>  

Make sure to re-deploy static view files or better to run upgrade then run deploy static view files.

1
  • Yes.. i have tried all this ... but still its throwing error.
    – Mahi M
    Commented Feb 22, 2019 at 5:22

Your Answer

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

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