I'm trying to add a custom CMS page link (home) to the navigation menu which was successful using the following code in layout/default.xml
<referenceContainer name="catalog.topnav"> <block class="Magento\Cms\Block\Block" name="home-link" before="-"> <arguments> <argument name="block_id" xsi:type="string">home-link</argument> </arguments> </block> </referenceContainer>
However - the link is simply added to the end of the menu. I would like, if possible to be able to display this as the first link.
Can anyone help please?