Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs] Fix logo customization guide #14116

Merged
merged 1 commit into from
Jul 1, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/getting-started-with-sylius/shop-customizations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ The first step is to detect which template is responsible for displaying the log
to customize a logo image.

It's placed in **SyliusShopBundle**, at ``Resources/views/Layout/Header/_logo.html.twig`` path, so to override it,
you should create the ``templates/shop/Layout/Header/_logo.html.twig`` file and copy the original file content.
you should create the ``templates/bundles/SyliusShopBundle/Layout/Header/_logo.html.twig`` file and copy the original file content.
Next, replace the ``img`` element source with a link to the logo or properly imported asset image (take a look at
`Symfony assets documentation <https://symfony.com/doc/current/best_practices/web-assets.html>`_ for more info).

Expand All @@ -41,7 +41,7 @@ Add the configuration to the file that stores your sylius template event setting
events:
sylius.shop.layout.header.grid:
blocks:
logo: 'bundles/SyliusShopBundle/Layout/Header/_logo.html.twig'
logo: 'shop/Layout/Header/_logo.html.twig'

If you want to learn more about template customization with sylius template events - click :doc:`here</customization/template>`.

Expand Down