Questions tagged [parent-child-theme]

Magento parent/child infinite theme fallback system is new as of version 1.9.0. The system provides a pathway to set a parent theme to inherit the layout and themes of the parent.

Filter by
Sorted by
Tagged with
20 votes
3 answers
22k views

How to create a Child Theme in Magento 2

I want to modify certain aspects of the out-of-the-box Luma theme but I would like to do it by preserving the original file(s) and also ensuring that whenever I update Magento I preserve my changes as ...
H. Ferrence's user avatar
  • 1,021
14 votes
3 answers
2k views

Is there a local theme layout XML file other than local.xml?

I've built a theme by creating and editing the following file: frontend/mypackage/default/layout/local.xml I have a store view "site1", and wish to make exceptions on the default local.xml of "...
Gerard Nijboer's user avatar
14 votes
2 answers
6k views

Correct way to Update a Theme's Parent in Magento 2

In Magento 2, you can specify a parent theme in a theme's theme.xml file. <theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/...
Alana Storm's user avatar
  • 44.3k
6 votes
4 answers
7k views

Magento 2.2.4 Upgrade issue : Area is already set

I have upgraded to version 2.2.4 from 2.2.3 now I'm getting error when try to save theme seting
Ketan Borada's user avatar
  • 2,593
5 votes
1 answer
1k views

How to add new theme name to grunt CLI command to run grunt tool in Magento 2?

When we clone new theme from existing parent theme in Magento 2. How we can execute less:newThemName command using grunt CLI ? As well as how grunt watch will look any changes into newly created ...
Praful Rajput's user avatar
4 votes
0 answers
133 views

Magento2.2.5 Luma child theme not using default_head_blocks.xml in child theme folder

I have a Magento 2.2.5 based multi-store view website. What we want to do is take the Luma theme and create a custom child theme from it. Each store view (we have 3) would use its own child theme of ...
Jayreis's user avatar
  • 695
4 votes
0 answers
407 views

Magento 2 theme HELP

Not long ago I made my first Magento 2 custom/child theme so that my website changes won't be erased when I upgrade to another version. I now want to override some core Magento 2 files that I need ...
Krang's user avatar
  • 167
3 votes
2 answers
764 views

How to create new theme in magento 2 without parent theme delcartion?

What if i don't declare parent theme in theme.xml while creating new theme in magento 2? will the new theme work properly?
Mukesh's user avatar
  • 125
3 votes
2 answers
4k views

Completely overwrite parent theme layout from the default.xml file of the child theme

I am working on a Magento 2.1.7 shop. To achieve this, I have created a child-theme of Magento Blank. I am new to Magento unfamiliarized with the complexity of overwriting the parent theme's layout ...
Razvan Zamfir's user avatar
3 votes
2 answers
6k views

Magento 2 : Add to Wishlist not Appearing on Product Page

When the store is using custom child theme design, add to wishlist is not appearing on the product page. When I switch to other theme, it appears. What could be the reason? UPDATE: I realised ...
user avatar
3 votes
1 answer
823 views

Which one of the elements automatically render all it's children in layout (m2)

automatically render all it's children <layout> <container> <block> <action> I feel like i've tried several now and they're not working for me. any of them. ugghhhh
getData's user avatar
  • 327
3 votes
1 answer
5k views

Layout Updates in theme.xml to pick up parent theme's xml

I've created a theme package called hoi with a default theme. In the app/design/frontend/hoi/default/etc/theme.xml I've set a parent theme to be the a theme we purchased called blacknwhite. This ...
Holly's user avatar
  • 4,823
3 votes
1 answer
456 views

Rwd Child Theme Copy Sass Partials Or Create New Ones

I want to create an upgrade-safe child theme mypackage/mytheme of the default rwd/default theme. Magento's RWD dev guide says: To customize styles for an existing Magento theme, you should edit ...
Simon's user avatar
  • 5,695
3 votes
1 answer
630 views

Magento 2 Override image problem (static image of parent theme)

Having a parent theme, I have created a child theme. (Magento 2.2) Parent theme: Mgs/claue Child theme: Bee/elag In the web there is a Title of page with a background css: .page-title-wrapper { ...
Rafael Calero's user avatar
3 votes
1 answer
8k views

Magento 2 theme not loading my css files

I am new to Magento theme development. I have gone through the frontend development guide and set up my child theme of the Magento Blank theme. I have done all that the guide says and added my css ...
Peter Wilkinson's user avatar
3 votes
2 answers
4k views

Getting Cannot read property 'nodeName' of undefined in magento 2 console

I am getting this error on all of the pages except the HOMEPAGE, i am using a custom theme whose parent theme is LUMA.
Abdul Moiz's user avatar
3 votes
1 answer
5k views

parent and child themes

I have followed the article here, http://alanstorm.com/magento_infinite_fallback_theme_xml and I have it working 99%. There is an odd thing happening that clearing the cache and all the moving around ...
Quantum's user avatar
  • 553
3 votes
1 answer
217 views

Using _extend in a grandchild theme

I have a question regarding how Magento 2 Less handles _extend. According to the documentation http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/css-guide/css_quick_guide_approach.html I can ...
Aaron's user avatar
  • 259
2 votes
3 answers
2k views

Sub-theme not working

I have a theme that I bought and downloaded and followed the instructions to create a sub-theme. If I edit the core theme files I'm able to achieve what I want but if I replicate it in the child ...
joseph drury's user avatar
2 votes
2 answers
1k views

Magento 2 add new block template file

I am trying to add a new phtml template file (in my child theme) of a custom module (not mine). Here is the block : {{block class="Sm\FilterProducts\Block\FilterProducts" template="Sm_FilterProducts:...
David N's user avatar
  • 45
2 votes
3 answers
517 views

Child-Child-Theme Magento 2.1.3

I am setting up a magento multistore. I want to have one main child theme with layout and CSS changes, that every site should have. From this theme my site-specific child themes should inherit. I ...
1yunuz's user avatar
  • 21
2 votes
1 answer
796 views

Is it possible Custom theme for desktop and Luma theme for mobile and ipad

Is it possible to use blank or luma theme for mobile and custom theme for desktop in magento2.
karthick's user avatar
  • 675
2 votes
1 answer
2k views

Modifying child block using Custom Layout Update XML

I am currently using a CMS Block to add more details on my product page. I had the following block (product_custom) added inside catalog.xml: <catalog_product_view translate="label"> <!--...
onyotzki's user avatar
2 votes
1 answer
314 views

Inheriting CSS in child theme's child theme

I'm relatively new to this, so i hope someone can help me out. In my store i have a child theme of blank. The changes in this child theme get properly displayed on the store front and everything not ...
Miss Oats's user avatar
2 votes
1 answer
172 views

Creating grandchild themes

I'm using ultimo theme for a multi store configuration. Since I have to update the theme regularly I don't want to make changes to the base files of it.But I've to make some changes which apply to all ...
bahaspletma's user avatar
2 votes
1 answer
593 views

Magento 2 custom theme Integration

First I am new to magento development and theme integration. As reading forum on the magento theme, created custom theme folder structure with listed file as below.... Magento\app\design\frontend\...
Draval's user avatar
  • 69
2 votes
1 answer
138 views

What do you do when xml layout isn't enough to position something where you want

According to this article a good theme should have "no .phtml template files, except for those that were modified to support the new theme. (Usually this number will be very small.)" So in an ideal ...
Eric Seastrand's user avatar
2 votes
0 answers
1k views

Page layouts in Magento 2 -- matching old .phtml files

short of it I need to dynamically set the htmlClass of a <container> that is defined in the layout file. <?xml version="1.0"?> <!-- /** * Copyright © 2015 Magento. All rights ...
Quantum's user avatar
  • 553
1 vote
2 answers
874 views

Declaration of overridden method should be compatible with parent class

This is my custom class: class Collection extends \Magento\CatalogSearch\Model\ResourceModel\Search\Collection { public function _getSelectCountSql($select = null, $resetLeftJoins = true) { $...
Rufus's user avatar
  • 621
1 vote
1 answer
841 views

How to find the file in getchildhtml('customer') in magento 2

How i find this file and i want to add some fields here <?php echo $block->getChildHtml('customer_form_register_layout3');?> i search in app/design/theme/childtheme/custom module but ...
prabhakaran7's user avatar
  • 1,067
1 vote
1 answer
85 views

Why do I get an exception when trying to append a block to a container in a parent theme?

I'm following an exercise in the ebook 'No-Frills-Magento-2-Layout' by Alan Storm (excellent book so far btw) and am coming across a slight issue for which I am not sure what I am doing wrong. I am ...
Dangerous's user avatar
  • 113
1 vote
2 answers
339 views

CDATA in my .xml is creating orphan /> closing tag in <body>

When I made my child theme, I wanted to extend the local.xml of the parent theme, so instead of creating my own local.xml (which would replace the parent one instead of extending it), I created a ...
hamncheez's user avatar
  • 223
1 vote
1 answer
3k views

How to add custom css file specific to language or store in magento2 [duplicate]

in my project i have 2 store one is for en other is ar_KW , i am creating new locale called ar_KW when i run magento setup:static-content:deploy ar_KW it will create a ar_KW folder in pub static ...
Pradeep Kumar's user avatar
1 vote
1 answer
77 views

How to change childhtml value twice in Magento

I have a scenario such that the childhtml should be called in two different places of same parent template file and for each childhtml is called it should return a phtml which contains the variable ...
Niranjan B's user avatar
  • 1,232
1 vote
1 answer
125 views

Magento doesn't detect child theme in different store view

I have a Magento website with one store view (ITALIAN) and a theme with the child theme and everything is working good. Today I created a second store view (ENGLISH) but this doesn't recognize the ...
Luca Frank Guarini's user avatar
1 vote
1 answer
109 views

Subtheme not applying to category pages

I recently installed a theme I purchased (called Venedor) on the latest magento ce install. I'd been manually adjusting the css file of the theme until I recently discovered that magento allows for ...
Zero Wing's user avatar
  • 355
1 vote
1 answer
30 views

Best way to override custom theme

I bought a custom theme for my Magento store and want to customize it slightly. Customizations mean that I will probably update layouts, templates, and other files that are available under app/design/...
iupaem's user avatar
  • 31
1 vote
1 answer
229 views

Adding CSS to child themes _extend.less has no effect

I have set up a child theme of Luma and can see it is being loaded by looking at the page source in the browser. I now want to customise the styling of the theme. I followed the instructions here: ...
Goodbytes's user avatar
  • 113
1 vote
2 answers
203 views

Is it possible to have a child of a child theme in Magento 2

I have a theme installed using Magento 2 and I then have a child theme which I am using to make customisations. Is it also possible to then create a child them of that child which I can use to make ...
TimDavies's user avatar
1 vote
1 answer
174 views

Magento 2 Luma Theme inherence error 2.2.1 CE

I have a problem when I add a new theme in my new Magento 2.2.1 CE from scratch, and I try to inherent Luma theme. I sow to many examples but nothing work for me. If I put as parent blank work well ...
Rafael David Portilla Santigue's user avatar
1 vote
1 answer
2k views

No content is displaying on the main content area

My Homepage , Login and Create an Account pages are blank. Only the header, nav menu and footer are showing. Main content area is not showing. However, when accessing CMS about-us page the cms block ...
Zammuuz's user avatar
  • 420
1 vote
1 answer
114 views

Cleaning up a parent theme and creating a child theme.

We are in the process of creating a child theme for a theme that is being used: Ultimo. A number of customisations were made to the parent theme which should have been made to a child theme. We do not ...
Wic8's user avatar
  • 33
1 vote
2 answers
569 views

Magento Child Theme Creation Problem

I've a fresh installation of Magento ver 1.9.1.0 on localhost. I'm following this tutorial closely to create a child theme of Magento responsive theme. I've followed all steps clearly. I've created ...
anwartheravian's user avatar
1 vote
1 answer
2k views

Magento 1.9 Minor template update

I've got a question about making an extremely minor change within a .phtml file on 1.9. I've gone through the RWD guide here: http://www.magentocommerce.com/knowledge-base/entry/ee114-ce19-rwd-dev-...
carbide20's user avatar
  • 485
1 vote
1 answer
158 views

layout/default.xml doesn't seem to work in a child theme from Luma

I have created a new child theme from Luma. The admin panel recognizes that it's registered and I have set it up to be used for my store. One of the things I tried to achieve was changing the logo for ...
Aivars's user avatar
  • 13
1 vote
1 answer
548 views

How to override carousel.phtml file in Magento 2 custom theme

I want to override below Page builder Carousel phtml file in my custom theme. Please provide magento standard way for this. vendor/magento/module-page-builder/view/frontend/templates/catalog/product/...
Jitendra Patel's user avatar
1 vote
0 answers
110 views

magento 2.4.3 Custom theme "Required parameter theme_dir was not passed"

I'm trying to create custom theme in my magento 2.4.3. I m getting error "" have written like this below. 1 exception(s): Exception #0 (InvalidArgumentException): Required parameter '...
Premkumar Suresh's user avatar
1 vote
1 answer
178 views

Magento 2.4 - Build Child Theme parent of theme installed via composer

) I need a tip. I've installed a theme via composer and I need to create a child theme having as parent a theme installed via composer. path of theme installed via composer: vendor/{vendor}/{theme}/ ...
Donato P's user avatar
1 vote
0 answers
230 views

Magento2 Content -> Design -> Configuration Tables are empty

I am using Magento-2.3.4 and came to the page to change the theme and I saw only the empty tables. I looked for answers and they said allow_url_fopen to be on but it is already on. What should I do ...
Haerriz's user avatar
  • 681
1 vote
0 answers
786 views

Magento 2 Parent's theme styles are not loading in the child theme

I have create a child theme that extends from magento-luma theme by following the steps below: app/design/frontend/Company/parent/registration.php <?php \Magento\Framework\Component\...
Mudasser Hayat's user avatar