Gérer les cookies utilisés pour la publicité, tels que la personnalisation des annonces, le remarketing et l’analyse des performances des annonces.
2.14.9.14. Configure 404 page in PrestaShop
Important points:
- Custom 404 pages will not work correctly for URLs that mention
pagespeedif optimization settings are enabled. To resolve the issue, disable optimization settings or avoid using links with similar keywords. - After making changes, be sure to clear the CMS cache.
The method for creating custom 404 pages may vary depending on the theme used in the CMS.
For the classic theme, you can change the 404 page as follows:
- Go to the directory
/themes/classic/templates/errors/and edit the filenot-found.tpl:- In the file, change the following lines:
- Line with page title:
<h4>{l s='Sorry for the inconvenience.' d='Shop.Theme.Global'}</h4> - Line with page text:
<p>{l s='Search again what you are looking for!' d='Shop.Theme.Global'}</p>
In most cases, automatic translation of text templates is enabled, so after changing the text, it can only be displayed in one language. To change the translation text, find the corresponding line in the template files at
app/Resources/translations/en-US/, where en-US should be replaced with the name of the directory with the desired language. In some themes, the file may be named 404.tpl, but the path to the file is usually similar to the standard one.