saleor / saleor-storefront

A GraphQL-powered, NextJs-based, PWA storefront for Saleor. IMPORTANT: This project is [DEPRECATED] in favor of saleor/react-storefront soon to become our default demo and storefront starter pack.
https://demo.saleor.io/
BSD 3-Clause "New" or "Revised" License
770 stars 672 forks source link

Change the title of storefront #1084

Closed Megidd closed 3 years ago

Megidd commented 3 years ago

I've checked out the latest stable release at tag 2.11.1. As mentioned on 2.11.1 read-me file:

  • saleor-storefront/src/index.html - Main template file that contains the <div id="root"></div>
  • Can change title of storefront here

I have changed the storefront title as suggested above and built by npm run build. Then deployed to a remote server.

Problem

For a brief moment, the storefront title is actually set as I desire:

Screenshot_20210725_205631

However, after a moment, the title reverts back to:

Screenshot_20210725_210439

What am I missing?

Only home page

When I navigate to any page except home page, the title is set to the one I have inside src/core/config.ts file. But navigating to the home page, results in the above problem!

Megidd commented 3 years ago

Problem is solved!

Saleor dashboard allows to change the storefront title by the Name of your store input field of CONFIGURATION > Site Settings:

Saleor dashboard