Applying the theme
As you learned in the previous chapter, it's time to activate the new theme. Activate the CompStore Electronics theme in the Admin area (http://localhost/packt/admin_packt
) to see the following result:
Sometimes, when you update in the Magento structure or activate a new theme, you need to deploy the theme and module changes. If you want to deploy your changes, follow these steps:
- Open the terminal or command prompt.
- Delete the
packt/pub/static/frontend/<Vendor>/<theme>/<locale>
directory. - Delete the
var/cache
directory. - Delete the
var/view_preprocessed
directory. - Then, access the
packt/bin
directory. - Run the php
magento setup:static-content:deploy ...
Get Magento 2 Development Essentials now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.