26

Lets us create a child theme so our all custom themes in Magento 2 goes here: app/design/frontend/company_name/theme_name Let us assume, our company name is mycompany and our theme name is basic. We need to create following directory structure for our theme: app └────design └──────frontend └──mycompany └───basic ...


17

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 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 ...


7

Since Magento 1.9 you can add custom layout updates in etc/theme.xml like this: <theme> <layout> <updates> <my_theme> <file>my_theme.xml</file> </my_theme> </updates> </layout> </theme> If you define your theme specific layouts like ...


5

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


5

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. ...


5

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 directory in app/design/frontend/Demo/Mytheme. Create layout directory in app/design/frontend/Demo/Mytheme/Magento_Theme. Create media directory in app/design/...


5

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 ...


4

It already exists in the success block afaik but if not you have to get an instance of this class: \Magento\Checkout\Model\Session 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: $this->_checkoutSession->...


4

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 ...


3

I found the problem was with my syntax, as per Alan Storms post on infinite theme's fallaback the proper syntax is: <?xml version="1.0"?> <theme> <parent>rwd/enterprise</parent> <layout> <updates> <my_new_file_name> <file>my_new_file_name.xml</file> ...


3

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. Good luck. ==================Update following content===================== Hi, I just download whole new free theme bluescale and make a sub theme, and edit the ...


3

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 ...


3

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 ...


3

You Just needed to copy module_wishlist/view/frontend/layout/catalog_product_view.xml to Magento_Wishlist/layout/catalog_product_view.xml Under custom theme.


3

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/...


3

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 ...


2

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.


2

It depends on how you set up the fallback Let's say you have this scenario base default 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 ...


2

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 ...


2

Try this //_____________SECTION 1 ____________ $s1Block = $block->getChildBlock('demoPage')->setSection('section1'); echo $s1Block->toHtml(); //_____________SECTION 2 ____________ $s2Block = $block->getChildBlock('demoPage')->setSection('section2'); echo $s2Block->toHtml(); or simply $block->getChildBlock('demoPage')->setSection(...


2

You need to change <reference name="content"> <block type="catalog/product_view"> <block type="cms/block" name="product.info.custom" as="product_custom"> <action method="setBlockId"> <block_id>product_custom2</block_id> </action> </block> </...


2

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.


2

UPDATED AT 20160310 Conclusion It is always set either via updateTheme() or from the collection (via DB) if your appState->getMode() == AppState::MODE_PRODUCTION Answer 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 (...


2

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.


2

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 ...


2

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

Spelling mistake For theme and magento. Should be Magento_Theme, not Magnto_theme


2

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

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 must create an file in this folder app/design/frontend/hexa/Ztheme/Sm_FilterProducts/templates/default-grid-column-id16.phtml


2

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 elements. Examples of containers include the header, left column, main column, and footer.


Only top voted, non community-wiki answers of a minimum length are eligible