2.13.8.13. Setting up a 404 page in PrestaShop
Important points:
- A custom 404 page won't work correctly for URL in which there is a mention
pagespeed
if included optimization settings... To fix the problem, disable optimization settings or not use links with similar keywords. - After making changes, be sure to clear cache CMS.
Creating your own page can be completely different depending on the chosen theme in CMS.
For a classic theme, you can change the 404 page like this:
- Go to the directory
/themes/classic/templates/errors/
and edit the filenot-found.tpl
:- The following lines should be changed in the file:
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, you need to find the corresponding line in the template files along the path
app/Resources/translations/ru-RU/
where instead of ru-RU
specify the name of the directory with the desired language. In some themes, the file may be called 404.tpl
, but the path to the file is usually similar to the standard one.