0

In layout default.xml, i found this

 <block class="Magento\Framework\View\Element\Template" name="skip_to_content" template="Magento_Theme::html/skip.phtml">

So the block class should be Magento\Framework\View\Element\Template, How to assign a new block for this template skip.phtml?

0

Just create a Magento_Theme/templates/html/skip.phtml file name under app/design/frontend/your-theme-name. This will override the default file.

1
  • I would like to override the block class not the template Aug 18 '21 at 15:40

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.