How to change the logo
The store logo is rendered directly in the Header.tsx component using an inline <svg> inside a <Link> pointing to /.
π Location in code
File:
components/layout/Header.tsxLine: around line 22β80
It's wrapped in:
<Link to="/" className="d-inline-block py-lg-2" style={{ width: '10rem' }} aria-label="sylius logo">
{/* SVG logo here */}
</Link>
How to replace the logo
Option 1 β Replace inline SVG
Go to
components/layout/Header.tsxReplace the entire
<svg>...</svg>block with:
This assumes you place your custom logo in the public/ folder as /public/logo.png.
Option 2 β Use logo from external URL
π Tips
You can also control logo size with
style={{ width: '10rem' }}or Tailwind/Bootstrap classes.For responsive layout, wrap logo with Bootstrap utilities like
img-fluidord-none d-md-blockif needed.If you want to move the logo to a CMS field or config file later, extract it into a separate
Logo.tsxcomponent.
Last updated
Was this helpful?
