1

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

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.

1
  • 2
    tried but not working
    – Vsmart SEO
    Feb 14, 2018 at 7:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.