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
18
votes
2answers
16k 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 ...
14
votes
3answers
1k 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 "...
14
votes
2answers
4k 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/...
6
votes
3answers
6k 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
5
votes
1answer
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 ...
4
votes
0answers
51 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 ...
3
votes
2answers
208 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?
3
votes
2answers
2k 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 ...
3
votes
1answer
4k 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 ...
3
votes
1answer
430 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 ...
3
votes
1answer
6k 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 ...
3
votes
1answer
299 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 { ...
3
votes
1answer
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 ...
3
votes
0answers
230 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 ...
3
votes
1answer
113 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 ...
2
votes
3answers
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 ...
2
votes
2answers
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:...
2
votes
2answers
3k 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 ...
2
votes
1answer
519 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.
2
votes
1answer
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"> <!--...
2
votes
1answer
49 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 ...
2
votes
1answer
499 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\...
2
votes
1answer
134 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 ...
2
votes
1answer
1k 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.
2
votes
0answers
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 ...
1
vote
2answers
117 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) { $...
1
vote
1answer
56 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 ...
1
vote
1answer
42 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 ...
1
vote
1answer
279 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
1
vote
2answers
176 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 ...
1
vote
3answers
299 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 ...
1
vote
1answer
2k 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 ...
1
vote
1answer
60 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 ...
1
vote
1answer
112 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 ...
1
vote
1answer
87 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 ...
1
vote
2answers
35 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 ...
1
vote
1answer
121 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 ...
1
vote
1answer
97 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 ...
1
vote
2answers
525 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 ...
1
vote
1answer
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-...
1
vote
0answers
85 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\...
1
vote
1answer
42 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 ...
1
vote
0answers
22 views

magento 2 extend theme only on desktop

In a child theme (luma is parent), how do I extend a desktop theme but not mobile? something like: if desktop "color:teal;" else "" <--- do nothing. I'm using _extend.less, so far changes are ...
1
vote
0answers
57 views

Error in css and js in child theme in Magento 1

I'm having a problem loading style sheets and scripts. I created a child theme, and I did not add any css or js to it. Even so, the magento looks for them in the son theme instead of the father. I'll ...
1
vote
1answer
160 views

Magento Theme not applying on 1.9

I am using Magento 1.9 and using the theme elegance . I have installed the theme manually from extracting the files in root directory and by following the instructions in the site domain. But my theme ...
1
vote
0answers
83 views

Magento 2 : Child theme not displaying Products

I've created child theme based on(Parent) default luma theme. I had this setup with My Magento 2.2.3 with Sample Data. Child theme is working fine, I enabled it. But problem i am getting is that ...
1
vote
1answer
48 views

Custom layout .xml in child-theme works locally, but not on the server

I have a strange problem. In our custom child-theme we have some simple layout files, for example removing the wishlist links and sidebar or moving page title, category image, etc into the content ...
1
vote
2answers
1k views

How to create a magento 2 Child and parent custom theme?

Please explain how to setup a child theme with step by step instructions.
1
vote
1answer
268 views

Child theme not being picked up on product detail page

I'm using Porto theme. I have created a child theme and its working everywhere but the product detail pages. On those pages it falls back to the default porto theme for all of its templates. For ...
1
vote
0answers
410 views

Magento 2 with blank theme : no product on the homepage

With Blank Theme activated on my fresh install of Magento 2.1.3, all the sample data products of the front page don't show up anymore. Is this a bug ? If not, how can I get the products to show up in ...