Lets us create a child theme so our all custom themes in Magento 2 goes here:
Let us assume, our company name is mycompany and our theme name is basic. We need to create following directory structure for our theme:
This is a re-owned issue of Magento 2.2.4 C.E.
Magento has been fixed by Daniel Ruf at
at PR #15137 and already merge at 2.2-develop branch
You need to modify the code of Magento\Email\Model\AbstractTemplate setForcedArea method and Replace that method code using ...
Since Magento 1.9 you can add custom layout updates in etc/theme.xml like this:
If you define your theme specific layouts like ...
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 directory in app/design/frontend/Demo/Mytheme.
Create layout directory in app/design/frontend/Demo/Mytheme/Magento_Theme.
Create media directory in app/design/...
Goto \dev\tools\grunt\configs, Open themes.js and add the part as
shown in the image.
Now Open less.js
and add the part shown in the image
Now you can run grunt less:luma2 task, and it will generate the pub static files for the theme
Magento does not merge local.xml changes from other local.xml files. The way Magento theme fallback works is that any file found in the current theme/package will be preferred and used over any other theme/package file similarly named.
In this way you cannot create a merged override. This will be possible in Magento 2, but is not possible in Magento 1.x.
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 from the scratch.
My suggestions is use blank theme as a parent theme, if you totally want to change any layout or build the styles from the scratch for the ...
It already exists in the success block afaik but if not you have to get an instance of this class:
You need to inject it into your block class if you wanna use it in the template, assuming you have done this and can now reach it at the protected $_checkoutSession field you can run:
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 what seems to be no ill effects. You could probably get the same results.
* Store the area associated with a template so that it will be returned by ...
I found the problem was with my syntax, as per Alan Storms post on infinite theme's fallaback the proper syntax is:
Did you disable or flush the cache?
According to you said, 'nothing happened', can you try:
input the 'default' in default field, and input the 'custom_theme' in template,skin and layout field.
==================Update following content=====================
Hi, I just download whole new free theme bluescale and make a sub theme, and edit the ...
Great question, Simon. First, you need to consider fact that Magento 2 is planned to be released later this year. So there will likely be few releases of Magento 1.x that will make significant changes to the Sass partials in the theme. With this being the case, the risks associated with editing the "core" Sass partials is small.
That being said, you are ...
Phil is absolutely right but theoretically there is a workaround (not that pretty though).
You can create a custom module which will introduce the layout update. Then in the module you can check if the store view is not the one that is required and remove this layout update.
The bad thing about this approach is that you will hardcode the store view. And ...
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/design/frontend/VendorName/themename)
Create one folder in the your custom theme directory name Magento_Theme
Now create logo.phtml file in "Magento_theme/templates/...
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 that.
First of all Magento 2 works with XML files to setup up pagelayouts and remove/add/move/hide blocks or containers within every xml.
The best page to look ...
It turned out that a Custom Design was somehow set for each of the categories under Catalog -> Manage Categories -> Your Category -> Custom Design -> Custom Design. I had to set them all back to the "Please Select" option in order to get it working correctly.
It depends on how you set up the fallback
Let's say you have this scenario
your custom theme
default < holds the default layout of your shop
product one template < holds product specific layout
product two template < holds product specific layout
Under System > Config > Design > Package your Current Package Name should be ...
Ultimo is a paid extension we don't have access to so we can't help you but it sounds like it's using the default app/design/frontend/rwd/default/template/page/html/topmenu/renderer.phtml
on line 66 it has this piece of code
$html .= $this->__('View All') . ' ' . $this->escapeHtml($this->__($child->getName()));
You would need to replace that ...
You must go into System -> Configuration -> Design. Then choose the english store view in top left. Uncheck the use website and insert your package and theme details as you did for the Italian store view. Clear the cache.
The above didn't seem to work for me, so I went with the hack.
Hope it helps someone.
using the command line
use magento; (or whatever your DB's name is)
SELECT * FROM theme;
(Check the **parent_id** of theme in question, it should be the same number as **theme_id** of theme you want as the parent)
if it is ...
UPDATED AT 20160310
It is always set either via updateTheme() or from the collection (via DB) if your appState->getMode() == AppState::MODE_PRODUCTION
To answer the question What is the way to get Magento to reload the theme.xml file the answer is:
Set the application state to developer using SetEnv MAGE_MODE developer in .htaccess (...
Please, see this answer - https://magento.stackexchange.com/a/96080/18419
If you have localized images in specified folder (for example, in the theme), these images will be used instead of default ones.
Same should be possible for css or less files.
No, you can't have multiple parents. That would make inheritance very messy. If both parents had the same template, which would take precedence?
As Asish said, all you can do is make use of multiple-level inheritance. Theme A can't extend Theme B and Theme C simultaneously, but Theme A can extend Theme B which extends Theme C.
Theme A > Theme B &...
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 or regular exceptions (PCRE).
For example : iPhone|iPod|BlackBerry|Palm|Googlebot-Mobile|Mobile|mobile|mobi|Windows Mobile|Safari Mobile|Android|Opera Mini