Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
2answers
21 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) { $...
0
votes
0answers
13 views

Change system config from child theme

I would like to know if it's possible to change some default system value with a child theme. For example, if I go to Configuration > Catalog > Product Review > Allow Guests to Write Reviews....
2
votes
1answer
41 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 ...
1
vote
1answer
48 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 ...
3
votes
2answers
130 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?
0
votes
1answer
50 views

Changes in Parent Luma theme is not reflected in Child Luma theme in Magento 2.3.0?

I have created seven child themes and one parent theme for these seven child themes. All seven child themes points to their parent theme, we've named "Master". <theme> <title>Child ...
0
votes
1answer
42 views

Magento 2 Child theme of Luma change media query

I have a custom theme that is a child of Luma. I see the styles-l min-width is set at 768px. Up until then the styles-m is active. I know if it was in my custom theme I could set that in my ...
0
votes
0answers
39 views

Magento 2.1.16 theme fallback not working on NGINX server

Thank you for the help. I already did it and it worked a bit. But there were other sections of the theme which were broken. Finally, after spending some more issue, I found that after upgrade to ...
1
vote
1answer
29 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 ...
0
votes
0answers
74 views

snowdog front tool for Magento 2

I am using magento 2.1.15 and I am trying to use the snowdog front tool for creating the theme for my project. Along side I am using snowdog blank theme as my parent theme. Basically the blank theme ...
0
votes
2answers
41 views

Specific Theme for specific language, can I compile each theme in just the applicable languages?

We have a site that has been designed with a new theme for each language and each language on a different URL. It's not how I would have built it but we have to "run what you brung". The problem I ...
1
vote
0answers
19 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
45 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 ...
0
votes
0answers
135 views

setDefaultDirection - Magento 2.2.5

Good morning, in the child theme, in this folder ...app/design/frontend/Smartwave/porton_child/Magento_Catalog/layout I have always used this code to choose the sorting direction: ... <...
0
votes
0answers
30 views

Account Dropdown next to Cart Dropdown

I am creating a child theme to the Blank theme in Magento 2.2.4 I want to create a Account Icon next to the Cart Item - until here its easy. Now - by clicking on the Cart icon a toggle window with "...
0
votes
0answers
35 views

How to add a specific block in a child theme in Magento 1.9 in local.xml

I am using the ultimo theme as a parent theme and I am making layout changes in my own my_local.xml file. Everything is configured correctly and I am able to make layout changes / add blocks for the ...
1
vote
1answer
188 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
6
votes
3answers
5k 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
1
vote
2answers
33 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
72 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
73 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 ...
0
votes
1answer
207 views

Error in developing magento 2.2 theme (Warning: DOMDocument::loadXML(): …)

config: php 7.0.22 mamp 4.2 Magento-2.2.2 without sample data localhost running. Hello! Currently I'm trying to learn how to develop a custom theme for magento, i followed the following steps : ...
1
vote
1answer
99 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 ...
3
votes
0answers
187 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 ...
0
votes
1answer
141 views

Magento 2: Background gradient and image

Magento 2.2.1 custom theme which inherits from Magento/blank. I am trying to assign a background which has a radial gradient as the bottom layer and an image as the top layer. Assigning a solid ...
2
votes
2answers
906 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:...
0
votes
1answer
173 views

Editing my child theme

I've created a child theme by adding files to C:\xampp\htdocs\magento\app\design\frontend\Magento\themename In this, I have a theme.xml file, a registration.php file, web folder, media folder and a ...
0
votes
0answers
36 views

child themes style not apply in magento2

I have create child themes and select child themes, have style(style-l.css,style-m.css) not able to apply for this theme and site has been messed up.
0
votes
1answer
80 views

What bare-bones starter theme should I use given a certain layout?

I am working on a Magento 2.1.7 shop. I need to create a custom theme where most pages have the layout below: I have not done a great job at creating a child theme from scratch. I need an ...
2
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 ...
0
votes
1answer
165 views

How to Deploy Child Theme in Magento 2?

How should I deploy child theme? Shell, I deploy only child theme or should I do both child and parent, if so what's the correct order?
3
votes
1answer
233 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 { ...
0
votes
1answer
401 views

Using LESS variables in extended LESS file Magento 2

I need to use LESS Variables in my extended LESS file in my theme. I've this code in my _extend.less in this location My_Magento\app\design\frontend\<My_Vendor>\<My_Theme>\web\i18n\fa_IR\...
1
vote
1answer
46 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
891 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.
0
votes
1answer
92 views

Magento Production Custom theme custom css file is not loading

My custom theme is not loading the compiled Less CSS file. In the theme layout XML, I am loading the CSS files as below in default_head_blocks.xml: <page xmlns:xsi="http://www.w3.org/2001/...
0
votes
1answer
113 views

Child theme does not load menu or parent theme components

i'm using magento 2.1.6. I'm using the theme everything and I want to extend one of their child themes into a new child theme. I am using these files and this structure: folder: app/design/...
2
votes
1answer
721 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.
0
votes
2answers
134 views

Child theme is loaded before parent theme

I have created child theme but on page css from child theme is loaded before css from parent theme, and I don't get correct style. Is there a way to specific order of loading scripts from theme (to ...
0
votes
1answer
289 views

Creating a child theme within a child theme in Magento 2.1.7

so I'm relatively new to Magento and downloaded a theme (Eren - off themeforest) to build a site off. The theme i wanted to use (eren-4) is already a child theme to eren-1 (the parent theme). I ...
0
votes
1answer
558 views

Magento2 - Child Theme CSS location

i am struggling to find the information i want regarding the location and method by which magento2 child themes inherit the custom css stylesheet. From my limited understanding of inheritance in ...
0
votes
1answer
1k views

Magento 2 - Creating a child theme

I purchased a theme for a Magento 2 website. I know want to create a child theme to modify some of the styles, etc. The theme purchased is called Porto and resides in /app/design/frontend/Smartwave/...
1
vote
2answers
141 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 ...
0
votes
0answers
71 views

Is it possible to import all style from base theme into custom theme in magento 2 and how?

I have newly started working on magento 2 . I have created custom theme by keep luma theme as parent. I want to import all css of parent theme in custom theme of magento 2.
1
vote
1answer
209 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 ...
0
votes
1answer
67 views

Inheritance from 3rd party template

I'm trying to create my own template and inheritance from another that I bought on themestore. I think it's a good practice, just for change some things, doing this way the 3rd party template is ...
0
votes
1answer
176 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 ...
0
votes
1answer
122 views

Not able to add any additional attribute to Magento 2 Custom Theme's Logo Element

I have successfully created a custom theme as a child of Luma theme in my Magento CE 2.0.12 installation. But if I add below code in my layout/theme.xml file, I am not able to add a title attribute ...
2
votes
2answers
2k 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 ...
0
votes
1answer
46 views

my theme stopped working after I switched back to the tip of the branch from an older git commit

So I have backups of all the files in the Magento root folder and tried overwriting the current Magento folder with the backup folder and it still doesn't recognize the changes I've made in my child ...