Skip to content

Commit

Permalink
minor #14116 [Docs] Fix logo customization guide (coldic3)
Browse files Browse the repository at this point in the history
This PR was merged into the 1.11 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.11      |
| License         | MIT                                                          |


Commits
-------

8b912d3 [Docs] Fix logo customization guide
  • Loading branch information
Zales0123 authored Jul 1, 2022
2 parents 2363f47 + 8b912d3 commit d72941f
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit d72941f

Please sign in to comment.