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?

1 Answer 1


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

  • I would like to override the block class not the template Commented Aug 18, 2021 at 15:40

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.