1

I have implemented an extension for my desktop theme, and I want to disable this extension on mobile theme (added as exception).

I know I can do this by creating separate store view for both themes but I don't want to define 2 store views.

Is there any way to implement this in the themes local.xml file or any other place?

  • Are you switching themes by user agent exceptions in "System > Configuration > Design"? – clockworkgeek Sep 9 '14 at 17:32
  • Modules are already loaded by the time a theme has been selected, so it is too late to disable it. However you can do/undo certain actions per-theme. Please expand your question to include specific changes you want to stop. – clockworkgeek Sep 9 '14 at 17:37
  • I am not switching themes, I have just added an exception for mobile theme. – Trimantra Software Solution Sep 13 '14 at 7:58
1

You can disable a module by creating an empty XML file in /mobile-theme/layout. This disables the output of the module. IE you will disable the Tag module in your mobile theme, you create an empty tag.xml file

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.