Building the BookStore theme
Magento 2 can handle different themes inside the same vendor scope, as you saw in the earlier chapters. We have created the Hello World theme inside Packt's vendor, but with reduced options inside the theme. The idea behinds the Hello World theme was to introduce to you some basic concepts. Now it's time to move up to the next level! The theme project proposal of this chapter is called BookStore.
First of all, you have to build the theme directory in <magento_root>/app/design/frontend/Packt/bookstore
:
Clarifications about the theme's directory structure:
etc
: This usually handles the XML configuration of some componentsMagento_Theme
: This overrides the nativeMagento_Theme
module by adding new functionalitiesmedia
: This stores the preview image of the BookStore themeweb
: This handles created CSS and images files
It is time to create the theme.xml
file in the <magento_root>/app/design/frontend/Packt/bookstore
directory with the following code:
<...