1

I am creating custom theme in magento 2. Is it necessary to assign parent theme to my new custom theme.

 <parent>Vendor/theme</parent>

I want to develop whole things from the scratch, that's why I don't want to include parent theme.

1
  • 1
    no need if you develop everything on your own, if not you suppose get basic thins like parent styles and layout from parent theme. That's why we include parent theme Commented Mar 15, 2019 at 12:15

2 Answers 2

2

No it is not necessary, if you do not set a parent theme you can create all your CSS from scratch. See this post for an example - Theming for Magento 2 - Starting from scratch

0
4

Parent theme is not necessary to defined it

It is not necessary to define parent theme check here
also if you do not set a parent theme you can create all your own CSS of theme becuase it is scratch
also if you want to create your parent theme in template,layout,css,extension then here available

12
  • What if I want to create all the thing (property, layout, template files, and styles) in my new theme. Do I need to use parent theme now? Commented Mar 15, 2019 at 12:17
  • 1
    No you don't need but that doesn't make sense, you can customise anything by inheriting parent theme instead of creating all the page layouts from the scratch @MuhammadBilalkhan Commented Mar 15, 2019 at 12:19
  • i know customiza all thing in custom theme but sometime is needed is parent theme check default reference : devdocs.magento.com/guides/v2.3/frontend-dev-guide/themes/… @MuhammadBilalkhan Commented Mar 15, 2019 at 12:20
  • 1
    @RakeshDonga has given the same, do accept this answer because that doesn't make sense provide repeating answer for single question.Hope you understand Commented Mar 15, 2019 at 12:25
  • 1
    @PrathapGunasekaran thanks i have updated it Commented Mar 15, 2019 at 12:49

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.