1

I want to move cms static block before breadcrumbs. My static block name ves_element_top.

asked Feb 14, 2018 at 6:19

1 Answer 1

0

To rearrange elements you need to use the <move> tag.

Here's the official documentation about it: http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/layouts/xml-manage.html#layout_markup_rearrange

In your case I reckon the right code would be something that looks like this:

<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
 <body>
 <move element="your.static.block.name" destination="page.top" before="breadcrumbs"/>
 </body>
</page>

Don't forget to change the element attribute value with the value of your block name.

answered Feb 14, 2018 at 6:21
1
  • 2
    tried but not working Commented Feb 14, 2018 at 7:20

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.