Skip to main content
1 of 2
lemk0
  • 608
  • 5
  • 9

Move block in Magento 2 without xml

Can anybody tell how to move block in Magento2 using observer or maybe other class without using "move" tag in layout xml.

I know about this method in layout, but I can not use it.

<move element="name" destination="to" before="-"/>

In my case "move" depends on 2 store config values.

And YES, I saw this: Magento 2 - Move block or container only for specific Device

Thank

lemk0
  • 608
  • 5
  • 9