17
votes
Accepted
Magento 2.2.4 Upgrade issue : Area is already set
This is a re-owned issue of Magento 2.2.4 C.E.
Magento has been fixed by Daniel Ruf at
https://github.com/magento/magento2/commit/7019a0a1392095185505ff3ca7b97dd3e9cb4ef2
at PR #15137 and already ...
6
votes
How to create a Child Theme in Magento 2
Create directories:
Go to root to the root directory and navigate to app/design/frontend, create directory Demo.
Now create Mytheme directory in app/design/frontend/Demo.
Create Mangento_Theme ...
5
votes
How to create new theme in magento 2 without parent theme delcartion?
We can create a new theme without depending any parent theme like Magento blank theme vendor/magento/theme-frontend-blank/theme.xml, the difficulty is you need to write all the look and feel changes ...
4
votes
Magento 2.2.4 Upgrade issue : Area is already set
It's thrown by this function in file vendor/magento/module-email/Model/AbstractTemplate.php on line 570.
Note I have commented out the error throwing part - which allows me to change the theme with ...
3
votes
Accepted
Not able to add any additional attribute to Magento 2 Custom Theme's Logo Element
You need to override template of logo.phtml into your custom theme.
Follow below steps :
Assuming you have already created custom theme and its working fine and activated !! (Location is : app/...
3
votes
Accepted
Completely overwrite parent theme layout from the default.xml file of the child theme
I can not explain you how to do exactly what you want because that would involve me setting up a demo website and coding it all for you.
But i can give you enough information so you can work with ...
3
votes
Accepted
Which one of the elements automatically render all it's children in layout (m2)
Its container. < container >
Containers assign content structure to a page using container tags within a layout XML file. A container has no additional content except the content of included ...
2
votes
Magento 2.x some css and js not working in custom theme
When deploying static content, Magento may ignore the assets of custom theme if the assets files(css, js) under web were empty. So, we need to put some css or js files under this folder.
2
votes
Accepted
Magento 2 theme not loading my css files
Spelling mistake For theme and magento. Should be Magento_Theme, not Magnto_theme
2
votes
Child-Child-Theme Magento 2.1.3
do you have any static files in the child theme?
Currently, the whole theme does not get deployed if it does not have any static files.
https://github.com/magento/magento2/issues/7569
2
votes
Correct way to Update a Theme's Parent in Magento 2
The above didn't seem to work for me, so I went with the hack.
Hope it helps someone.
using the command line
mysql
SHOW databases;
use magento; (or whatever your DB's name is)
SHOW tables
...
2
votes
Accepted
Magento 2 Override image problem (static image of parent theme)
It is solved by changing the environment to development:
php bin/magento deploy:mode:set developer
2
votes
Accepted
Is it possible Custom theme for desktop and Luma theme for mobile and ipad
You can achieve this by design configuration from magento 2 admin.
Go to STORES > Configuration > General > Design -> User-Agent Exceptions
Search String -> Search strings are either normal strings ...
2
votes
Accepted
Magento 2 add new block template file
app/design/frontend/hexa/Ztheme/Magento_Theme/templates/page/html/sm_template.phtml
for
Magento_Theme::page/html/mytemplate.phtml
and For
Sm_FilterProducts::default-grid-column-id16.phtml
you ...
2
votes
Accepted
Why do I get an exception when trying to append a block to a container in a parent theme?
1- Your theme architecture should be like this:
--app/design/frontend/Pulsestorm/dram/
|__ Magento_Catalog/
...
2
votes
How to find the file in getchildhtml('customer') in magento 2
$block->getChildHtml('Cusomer_form_register_layyout3')
This is nothing but name of block which exist in layout file so you can search in layout(either in your module or design section).
$block->...
2
votes
Accepted
Is it necessary to use a child theme?
in any development you have two options:
1 - using child theme. full separate development to add or rewrite some functions.
2 - using template and css overrides. partial css changes within core ...
1
vote
Magento 2.2.4 Upgrade issue : Area is already set
I have overridden this function using a plugin.
Please find my answer here https://magento.stackexchange.com/a/232745/48571
1
vote
Magento 2 add new block template file
Try
Magento_Theme::html/sm_template.phtml
in your block template.
Hope it helps!!
1
vote
Is it possible to have a child of a child theme in Magento 2
I think you just need to create a child theme inside your current child theme and specify your current child theme as the parent of your new child-child-theme. That will do the trick.
So your child-...
1
vote
Accepted
Magento 2 Luma Theme inherence error 2.2.1 CE
Looks good. Add new css file to your theme (you can copy from parent), flush cache and run static content deploy
1
vote
Completely overwrite parent theme layout from the default.xml file of the child theme
Presuming this is for your homepage the easiest way for this would be to manage it in the admin, navigate to Content > Pages and choose your homepage.
You can then add your content there either ...
1
vote
Magento 2 : Add to Wishlist not Appearing on Product Page
I had similar problem in Magento 2.3.0. In my custom theme I changed layout of catalog_product_view.xml and "Add To Wishlist" stopped showing up. Any change to the file and it wouldn't be visible. So ...
1
vote
Accepted
Using LESS variables in extended LESS file Magento 2
Oh, That was for my parent theme! It has separated style in yttheme.less file that loaded after style-l.less, so when style-l.less is compiling with _extend.less files, it has not access to yttheme....
1
vote
Accepted
Magento Production Custom theme custom css file is not loading
My above Issue is fixed. The solution was to change the theme type from virtual (1) to physical (0) in database "theme" table. After that flush the cache.
1
vote
Getting Cannot read property 'nodeName' of undefined in magento 2 console
In this case you will definitely accessing any node in html which is not present. so you have to place its presence check before calling it. wrap your code like following
if(jQuery('#someID').length){...
1
vote
Accepted
Magento2 - Child Theme CSS location
You can add your css custom code in _theme.less
location file app/design/frontend/Vendor/theme/web/css/source/_theme.less
Example you extend blank theme
Add your css add last in head tag of file ...
1
vote
Accepted
CDATA in my .xml is creating orphan /> closing tag in <body>
This is because the addItem and addCss methods have different signatures. You would need to look at Mage_Page_Block_Html_Head to see the differences and which parameters are required and which are ...
1
vote
CDATA in my .xml is creating orphan /> closing tag in <body>
It turns out I was missing a
<params/>
in my xml, that I guess closes out the head tag. For some reason, I also needed to use the method "addItem" and specify the type as css, rather than ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
parent-child-theme × 120magento2 × 58
theme × 43
luma-theme × 15
layout × 13
theme-fallback × 11
css × 10
magento-1.9 × 9
custom-theme × 9
magento-2.1 × 7
magento2.4 × 6
rwd-theme × 5
overrides × 4
magento-2.1.3 × 4
less × 4
magento2.2 × 3
blocks × 3
frontend × 3
design × 3
inheritance × 3
magento2.3 × 2
php × 2
javascript × 2
magento-1 × 2
template × 2