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
3
votes
2answers
3k 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
294 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?
0
votes
1answer
726 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\...
3
votes
1answer
401 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 { ...
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 "...
1
vote
1answer
51 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.
0
votes
1answer
117 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
2answers
111 views

How to separate toolbar.phtml?

In product listing page (catalog/product/list.phtml) the toolbar.phtml is getting called, which is for two things. For sorting option For pagination For pagination I have called $this->...
0
votes
1answer
164 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/...
0
votes
2answers
190 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
949 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 ...
1
vote
3answers
379 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
2answers
221 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
78 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
338 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
70 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 ...
1
vote
1answer
623 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 ...
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/...
0
votes
1answer
267 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 ...
0
votes
1answer
855 views

Magento 2.x some css and js not working in custom theme

I have installed Magento CE 2.1.2 in my local system Windows 7(64 bit) Uwamp. Now I have created my custom theme and set it up in the backend. Below are the theme specific files and I have kept some ...
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 ...
1
vote
0answers
444 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 ...
1
vote
0answers
45 views

Magento2 custom theme suddenly stops working

First I have installed a third party theme Third/customtheme (its parent theme is Third/maintheme) and parent of Third/maintheme is Magento/blank on my Magento2 installation, then using Third/...
2
votes
1answer
547 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\...
0
votes
0answers
470 views

Change .product-item-name font-weight to bold

How to change .product-item-name (see image) font-weight to bold in my Magento 2 child theme? My parent theme is Luma theme. I can't find in which less file: .product-item-name, .product.name a { ...
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 ...
0
votes
1answer
61 views

How can I remove some content from RWD default home page

I have chosen to develop a child thee based on RWD parent theme. How can I remove some garbage that I actually don't need. I marked the piece of html that I want to remove, in the attached screenshot. ...
0
votes
1answer
297 views

Magento 1.9.3 is not picking up a new template from a child theme from same package

Magento (Version 1.9.3) is innately picking up on the parent template file (app/design/frontend/rwd/default/template/catalog/layer/filter.phtml), instead of the child theme's template (app/design/...
2
votes
1answer
598 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.
0
votes
1answer
93 views

search drop down name replace with parent category [closed]

I am using ultimo magento theme. In this Each search drop down has a text "ALL CATEGORIES". Anyone can replace with parent category? my folder path is app/design/frontend/ultimo/default/template/...
0
votes
1answer
41 views

Magento manual uploading of product- image issue is child item

I have uploaded a product having red & Yellow color. Parent item has yellow color image, when we select red swatch child image is not changing even its image is uploaded in the backend
0
votes
1answer
465 views

Create a Magento 2 child theme - it crashes

My Magento 2 will not work when I add registration.php to my child theme to register it. I am creating a child theme for Magento 2. I have pretty much gone through piece by piece and copied from ...
0
votes
1answer
3k views

How to get order details on Order success page in Magento 2

I need order details on file app\design\frontend\Yard\yardfreak\Magento_Checkout\templates\success.phtml In older versions , it works fine with these lines of code $orderId = Mage::getSingleton('...
0
votes
1answer
2k views

Magento 2: Adding a new block to a child theme

Just getting to grips with Magento 2.. I have created and applied a child theme of Luma that seems to work fine. It pulls in my CSS files and things like that. But I would like to add some custom ...
0
votes
2answers
284 views

Is it possible to override Magento theme files?

I previously asked a question regarding overriding Magento core files and learned that I can copy files to local folder and the core files will be overridden. Is this also possible for Themes? I want ...
0
votes
1answer
238 views

Multiple parents of a theme

In Magento 2, it is possible to extend themes by inheritance. Is it possible to have more than 1 parent theme?
0
votes
1answer
545 views

“Blank” instead of Default theme

I'm upgrading from 1.7.0.2 to the latest (1.9.2.4) and I seek to have as little template customization as possible. Following a guide that made the most sense to me, I performed a mysqldump of ...
0
votes
1answer
207 views

How to make copy of a file from default theme in magento 2 for modifications

I have file success.phtml in directory of Magento 2 C:\wamp\www\magento_test\vendor\magento\module-checkout\view\frontend\templates\success.phtml I want to make some changes in this, and also want ...
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
votes
1answer
44 views

Which Magento Basic Theme Should I make Parent for Designing Responsive theme from scratch

I want to Design Magento Theme from scratch. I used RWD as Parent but it's much more conflicting with my custom CSS. So I want any idea to create Magento responsive theme. My theme will have only ...
1
vote
2answers
560 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 ...
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 ...
0
votes
3answers
440 views

Magento products stubbornly using old theme

I'm trying to change the package+theme for a magento installation. The old theme is at default/paws The new theme is at ebajes/default While the rest of the views (home page, categories, etc.) have ...
1
vote
1answer
64 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 ...
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 ...
0
votes
0answers
51 views

Magento skipping Sub-Theme to default

I can't seem to find anything at all on the internet related to my problem which makes me think I've done something wrong along the way which has eluded me for days now. I have a theme I downloaded ...
1
vote
1answer
101 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 ...
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"> <!--...
3
votes
1answer
433 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 ...