How to Display Your Own Snippets on the Frontend in Shopware 6?

Display Snippets in Shopware 6

Shopware uses snippets for the translation and customization of texts, which can be managed from the admin section and it’s very easy to use and provide flexibility to the merchant to manage text.


First, you need to create the snippet in the admin under Settings Shop Snippets.

To display snippets in the frontend using the template follow the following steps:

Here, we are going to customize the footer section.

To customize the footer you will need the file footer.html.twig from the directory /vendor/shopware/storefront/Resources/views/storefront/layout/footer.


You can then override this file in your own custom theme under /custom/plugins/MyTheme/src/Resources/views/storefront/layout/footer.

{% sw_extends '@Storefront/storefront/layout/footer/footer.html.twig' %}

{% block layout_footer_service_menu_content %}
    {{ parent() }}
    {{ "custom.footer"|trans }}
{% endblock %}

The snippet “custom.footer” is included here as an example.

Finally, you need to empty the shop cache. This can be done from the admin as well as using the command.

Once above steps are completed then you can easily view your snippet on frontend.

Please contact us at manish@bay20.com or call us at +91-8800519180 for any support related to shopware. You can also visit the Shopware development page to check the services we offer.