How to add custom footer template for product view page in magento2.

How to do that. Thanks.


 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"/>

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

  • you want to template add in footer above? – Rakesh Donga Feb 22 at 6:16
  • I need to add support.ptml in footer – Mano M Feb 22 at 6:17
  • means you add this file in above footer container right? – Rakesh Donga Feb 22 at 6:18
  • Yes ............ – Mano M Feb 22 at 6:18

Your Answer

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

Browse other questions tagged or ask your own question.