Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Magento 2 Development Cookbook

You're reading from   Magento 2 Development Cookbook Over 60 recipes that will tailor and customize your experience with Magento 2

Arrow left icon
Product type Paperback
Published in Dec 2015
Publisher
ISBN-13 9781785882197
Length 304 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Toc

Table of Contents (13) Chapters Close

Preface 1. Upgrading from Magento 1 FREE CHAPTER 2. Working with Products 3. Theming 4. Creating a Module 5. Databases and Modules 6. Magento Backend 7. Event Handlers and Cronjobs 8. Creating a Shipping Module 9. Creating a Product Slider Widget 10. Performance Optimization 11. Debugging and Unit Testing Index

Creating a Magento 2 theme


We will start customizing the look and feel of the shop by creating a custom theme. The purpose of a custom theme is that we don't have to modify the core files delivered by Magento.

Getting ready

Open your Magento webroot in your favorite IDE. We will create a theme and, for this, we will work in the app/design/frontend folder.

Before you start, disable the full-page cache because this will save you a lot of trouble. You can do this in the backend on the page System | Cache Management. Click on the Flush Magento Cache button after you have disabled the Full page caching.

How to do it...

The following procedure shows you which actions are required to create a custom theme:

  1. For our theme, we will create a vendor namespace. We can do this by creating the folder app/design/frontend/Packt.

    Note

    A theme namespace is always written in CamelCase such as Magento, Packt.

  2. In that namespace, we will create a theme called cookbook. First, create the folder app/design/frontend/Packt...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime