Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Magento 2 Theme Design
Magento 2 Theme Design

Magento 2 Theme Design: Create stunning and responsive Magento 2 themes for your business , Second Edition

Arrow left icon
Profile Icon J Miguel Profile Icon Richard Carter
Arrow right icon
AU$24.99 per month
Full star icon Full star icon Half star icon Empty star icon Empty star icon 2.7 (7 Ratings)
Paperback Oct 2016 288 pages 2nd Edition
eBook
AU$29.99 AU$42.99
Paperback
AU$53.99
Subscription
Free Trial
Renews at AU$24.99p/m
Arrow left icon
Profile Icon J Miguel Profile Icon Richard Carter
Arrow right icon
AU$24.99 per month
Full star icon Full star icon Half star icon Empty star icon Empty star icon 2.7 (7 Ratings)
Paperback Oct 2016 288 pages 2nd Edition
eBook
AU$29.99 AU$42.99
Paperback
AU$53.99
Subscription
Free Trial
Renews at AU$24.99p/m
eBook
AU$29.99 AU$42.99
Paperback
AU$53.99
Subscription
Free Trial
Renews at AU$24.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. $24.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
Table of content icon View table of contents Preview book icon Preview Book

Magento 2 Theme Design

Chapter 2.  Exploring Magento Themes

"It's an up and down thing, the human goals, because the human is always an explorer, an adventurist" - Cesar Millan

As you've already seen, Magento 2 can be a complex platform to customize, so this chapter will help you to explore Magento 2 themes, including the following:

  • Magento terminology
  • What a Magento theme is: the elements that comprise a Magento 2 theme
  • Theme hierarchy in Magento 2
  • Magento's Blank and Luma themes
  • Installing and activating a Magento 2 theme

Magento terminology

Before you look at Magento themes, it's beneficial to know the difference between what Magento calls vendors and what Magento calls themes and the distinguishing factors of websites and stores.

Magento vendors and themes

According to the official documentation, a Magento theme is a component that provides a visual design for an entire application area using a combination of custom templates, layouts, styles, or images. Themes are implemented by different vendors and are intended to be distributed as additional packages for Magento, similar to other components.

Each vendor can have one or more themes attached to it, so you can develop different themes inside the same vendor:

Magento vendors and themes

Each theme can have specific rules and custom layout files providing better flexibility both for administrators and developers. The Magento 2 theme structure can be described as follows:

Magento vendors and themes

The way that Magento's theme structure works is quite simple. Each <Vendor>_<Module&gt...

What makes a Magento theme?

A Magento theme is a collection of files that define the look, layout, and other outputs from the Magento system.

Unique aspects of a Magento theme

Magento 2 themes differ from design implementations in other content management systems and e-commerce platforms in a few key ways:

  • Maximum ability to customize Magento
  • Support for multiple concurrent themes
  • They offer an uninterrupted workflow
  • They minimize debugging time for errors

Magento's theming system provides the ability to highly customize the way Magento 2 looks to your customers: you can customize every aspect of your Magento store through layout, CSS, JavaScript, templates, and local files.

The support for multiple concurrent themes is another feature that makes Magento somewhat unique in its field, allowing you to style your store differently with Magento.

Default Magento 2 themes

By default, Magento 2 comes with two different themes:

  1. Luma: Created with the purpose to initiate the understanding of Magento 2's theme structure. It's highly recommended not to use this as your production theme.
  2. Blank: Provides the basic theme structure, used as a boilerplate to develop new themes in Magento 2.

You can easily preview the Luma theme on the Magento demonstration site at http://demo2.aheadworks.com , provided by aheadWorks Company (http://www.aheadworks.com).

Magento Luma theme

The Luma theme implements responsive web design (RWD) as a good practice to use in theme development, and inherits code and layout from the Blank theme. The Magento 2 Blank theme, found in the vendor/magento/theme-frontend-blank folder, is the basic Magento theme and is declared as the parent theme of Luma. How is it possible? Logically, Magento has distinct folders for every theme, but Magento is very smart and reuses code. Magento takes advantage of theme inheritance...

Blocks and pages in Magento

Magento uses blocks to differentiate between the various components of its functionality, the idea being that this makes it easier for Magento developers and Magento theme designers to customize the functionality of Magento and the look and feel of Magento respectively.

A content block displays the generated HTML provided by Magento for any given feature. Content blocks are used within Magento structural blocks. Examples of content blocks in Magento include the following:

  • The search feature
  • Product listings
  • The mini cart
  • Category listings
  • Site navigation links
  • Callouts (advertising blocks)

Simply, content blocks are the what of a Magento theme: they define what type of content appears within any given page or view within Magento.

Usually, the blocks are available in a visual hierarchy from a page. A typical structure of a three-column block in a Magento theme includes the following:

  • Header
  • Primary area
  • Left column
  • Right column
  • Footer

Blocks and pages in Magento

Magento has a flexible theme system. Beyond...

Magento terminology


Before you look at Magento themes, it's beneficial to know the difference between what Magento calls vendors and what Magento calls themes and the distinguishing factors of websites and stores.

Magento vendors and themes

According to the official documentation, a Magento theme is a component that provides a visual design for an entire application area using a combination of custom templates, layouts, styles, or images. Themes are implemented by different vendors and are intended to be distributed as additional packages for Magento, similar to other components.

Each vendor can have one or more themes attached to it, so you can develop different themes inside the same vendor:

Each theme can have specific rules and custom layout files providing better flexibility both for administrators and developers. The Magento 2 theme structure can be described as follows:

The way that Magento's theme structure works is quite simple. Each <Vendor>_<Module> corresponds a specific...

What makes a Magento theme?


A Magento theme is a collection of files that define the look, layout, and other outputs from the Magento system.

Unique aspects of a Magento theme

Magento 2 themes differ from design implementations in other content management systems and e-commerce platforms in a few key ways:

  • Maximum ability to customize Magento

  • Support for multiple concurrent themes

  • They offer an uninterrupted workflow

  • They minimize debugging time for errors

Magento's theming system provides the ability to highly customize the way Magento 2 looks to your customers: you can customize every aspect of your Magento store through layout, CSS, JavaScript, templates, and local files.

The support for multiple concurrent themes is another feature that makes Magento somewhat unique in its field, allowing you to style your store differently with Magento.

Default Magento 2 themes


By default, Magento 2 comes with two different themes:

  1. Luma: Created with the purpose to initiate the understanding of Magento 2's theme structure. It's highly recommended not to use this as your production theme.

  2. Blank: Provides the basic theme structure, used as a boilerplate to develop new themes in Magento 2.

You can easily preview the Luma theme on the Magento demonstration site at http://demo2.aheadworks.com , provided by aheadWorks Company (http://www.aheadworks.com).

Magento Luma theme

The Luma theme implements responsive web design (RWD) as a good practice to use in theme development, and inherits code and layout from the Blank theme. The Magento 2 Blank theme, found in the vendor/magento/theme-frontend-blank folder, is the basic Magento theme and is declared as the parent theme of Luma. How is it possible? Logically, Magento has distinct folders for every theme, but Magento is very smart and reuses code. Magento takes advantage of theme inheritance. You will...

Blocks and pages in Magento


Magento uses blocks to differentiate between the various components of its functionality, the idea being that this makes it easier for Magento developers and Magento theme designers to customize the functionality of Magento and the look and feel of Magento respectively.

A content block displays the generated HTML provided by Magento for any given feature. Content blocks are used within Magento structural blocks. Examples of content blocks in Magento include the following:

  • The search feature

  • Product listings

  • The mini cart

  • Category listings

  • Site navigation links

  • Callouts (advertising blocks)

Simply, content blocks are the what of a Magento theme: they define what type of content appears within any given page or view within Magento.

Usually, the blocks are available in a visual hierarchy from a page. A typical structure of a three-column block in a Magento theme includes the following:

  • Header

  • Primary area

  • Left column

  • Right column

  • Footer

Magento has a flexible theme...

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Realize the full potential of theme design in Magento 2
  • Design attractive themes for your e-commerce store to make them stand out amongst the crowd
  • Practical skills and examples ensure you can take what you’ve learnt to your own projects – limited only by your own creativity!

Description

Magento is the e-commerce software and platform trusted by the world’s leading brands. Using Magento’s powerful theming engine, you can control the look, content, and functionality, and easily launch a flexible e-commerce website. However, because of its powerful features, developing Magento themes is easier said than done. This book aims to leverage the enhancements to theme designing in Magento 2 to the fullest. It will show you how to gear up the performance of your e-commerce website. We begin by introducing Magento 2 and its features along with implementing a local development Magento environment. We then move on to discuss the concepts of the Magento theme structure such as templates, inheritance, customization, and override. Further on, we explore the Magento UI Library, which is a new feature available in Magento 2.0. We will create a new Magento 2.0 theme named MyCake Store using Magento Bootstrap from Maven E-commerce and also create print strategies for the Magento 2.0 theme. We will also create and customize a new theme proposal for the Magento admin panel. At the end, we will integrate Magento 2.0 to Twitter and integrate it with social bookmarking and finally deploy our new Magento 2.0 theme.

Who is this book for?

This book is for web designers and developers with existing knowledge of CSS, HTML, and XML who wish to create themes for Magento 2. Existing Magento 1.x theme designers who now want to develop themes for Magento 2 will also find this book useful.

What you will learn

  • Implement a local development Magento environment
  • Understand the workings of the Magento theme structure
  • Edit an existing Magento theme to satisfy your business needs
  • Create print strategies for the Magento 2.0 theme
  • Generate specific blocks to improve the Magento 2.0 theme
  • Explore specific Magento programming Methods to improve the Magento 2.0 theme
  • Customize the Magento 2.0 admin panel to create a new Magento 2.0 admin theme
  • Build a Twitter module for Magento 2.0 and integrate Magento 2.0 with social bookmarking

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Oct 28, 2016
Length: 288 pages
Edition : 2nd
Language : English
ISBN-13 : 9781785888229
Vendor :
Magento
Languages :
Concepts :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. $24.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : Oct 28, 2016
Length: 288 pages
Edition : 2nd
Language : English
ISBN-13 : 9781785888229
Vendor :
Magento
Languages :
Concepts :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
AU$24.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
AU$249.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just AU$5 each
Feature tick icon Exclusive print discounts
AU$349.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just AU$5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total AU$ 169.97
Mastering Magento 2
AU$57.99
Magento 2 Theme Design
AU$53.99
Magento 2 Developer's Guide
AU$57.99
Total AU$ 169.97 Stars icon

Table of Contents

12 Chapters
1. Introduction to Magento 2 Chevron down icon Chevron up icon
2. Exploring Magento Themes Chevron down icon Chevron up icon
3. Magento 2 Theme Layout Chevron down icon Chevron up icon
4. Magento UI Library Chevron down icon Chevron up icon
5. Creating a Responsive Magento 2 Theme Chevron down icon Chevron up icon
6. Magento 2 Styles Debugging Chevron down icon Chevron up icon
7. Magento UI Components Chevron down icon Chevron up icon
8. Magento Layout Development Chevron down icon Chevron up icon
9. Magento 2 JavaScript Chevron down icon Chevron up icon
10. Social Media in Magento 2 Chevron down icon Chevron up icon
11. Theme Development Best Practices Chevron down icon Chevron up icon
12. Magento Theme Distribution Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Half star icon Empty star icon Empty star icon 2.7
(7 Ratings)
5 star 28.6%
4 star 14.3%
3 star 0%
2 star 14.3%
1 star 42.9%
Filter icon Filter
Top Reviews

Filter reviews by




Dibyendu Kr sau Sep 28, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Nice book to learn leant megento theme development
Amazon Verified review Amazon
Infocurci Feb 28, 2020
Full star icon Full star icon Full star icon Full star icon Full star icon 5
sono molto soddisfatto dell'acquisto, si tratta di un testo chiaro e completo, con parecchie pagine (e non, come certi testi, pagine di screenshot...).
Amazon Verified review Amazon
Simone Secci May 21, 2017
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
E' un ottimo libro come primo approccio al design dei temi su Magento 2.Gli argomenti vengono trattati in modo chiaro e ordinato.Ad ogni modo per padroneggiare l'argomento sono necessari degli approfondimenti.
Amazon Verified review Amazon
Pawel Oct 23, 2019
Full star icon Full star icon Empty star icon Empty star icon Empty star icon 2
Personally, I do t recommend this book.A lot of images, I know that images should support text but I'm not sure if in this book case far too many images not enoth text.
Amazon Verified review Amazon
yogibär Oct 08, 2017
Full star icon Empty star icon Empty star icon Empty star icon Empty star icon 1
Very difficult to follow all the steps described in the book. Some steps are missing. You need already quite a good understanding of Magento developing. Understanding the english translation is quite difficult. Book is useless to me, although I have experience in PHP, HTML, CSS, XML.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.