문제

How to change logo location in Magento CE 2.0.2 ?

I want to move logo to header.panel block.

Tried to do it through layout/xml but that only provides changing position (before/after).

Any help appreciated.

도움이 되었습니까?

해결책

You can use this approach to move a block:

   <move element="logo" destination="header.panel" />

with attributes "before" or "after".

You can use "before" = "-" to place your element at the very begin of the destination and "after" = "-" to place your element at the very end of the destination. Look at the source code for examples.

You can find also another approach. This one is about using actions "unsetChild" and "insert".

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top