1

On magento1, I could achieve this by

1, I had my theme folder "mydesign" under frontend/default

2, Another store's folder was also added under frontend/default as "mydesign-en"

3, "mydesign-en" had a template folder under it and there I could have different template files than main store.

4, I applied on the backend configuration under design section "theme setting", for default and skin "mydesign" and for template "mydesign-en".

However, I see the design configuration is different on the backend of Magento2.

At the moment I have mytheme/mydesign under app/design/frontend. Do I have to create another child theme as mytheme/mydesign-en to achieve this?

2

Yes, you should create a new theme under app/design/frontend/mytheme. Its parent is your current custom theme. For example:

  • You create Theme A1 for store A

  • And then create Theme B1 for store B. Its parent theme is Theme A1.

Now, in Theme B1, you can create the new layout and style for catalog product page on store B:

app/design/frontend/mytheme/B1/Magento_Catalog/templates/product/list.phtml

  • I have app/design/frontend/mytheme and for store A theme A1 and for store B themeB1. But it is not working. There is no setting on the backend needed? – rtk0407 Feb 10 '17 at 7:05
  • Which is your Magento version? – Khoa TruongDinh Feb 10 '17 at 7:17
  • latest version, 2.1.4 – rtk0407 Feb 10 '17 at 7:21
  • For 2.1.4, go to CONTENT > Configuration and apply the custom theme. – Khoa TruongDinh Feb 10 '17 at 7:34
  • somehow I thought I didn't need to create another custom theme structure (eg. theme.xml, registration.php etc). I created B1theme as same structure as A1 theme then I could apply in the backend. However, it is not the design of A1 as parent, such as CSS setting. – rtk0407 Feb 10 '17 at 10:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.