Magento 2 Block ordering/moving: how to get of element name(or elements list) and destination elements name to move the element

magento.stackexchange https://magento.stackexchange.com/questions/151893

  •  05-10-2020
  •  | 
  •  

Question

May be this is not new to you, but have to ask this because of i cant get most answer what i want So asking as new.

<move element="minicart" destination="panel-header" before="header-links" />

This is the scenario what I have to get the element name or destination name like,

  • go to store > configuration > Advance >developer > Debug > Enabled Template Path Hints for Storefront > ON IT.

  • See the TEMPLATE LINK go to the template in vender > magento > module directory > view ..... layout > default.xml and see for file name get the name.

ANY OTHER solution TO GET name?

Was it helpful?

Solution

You can use MSP DevTools: https://github.com/magespecialist/mage-chrome-toolbar .

It will sohw you Magento information and specific blocks information such as: name in layout, block type, etc...

Is it what you are looking for?

enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top