Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Updating theme.yml in PrestaShop

So I'm trying to modify the layout of theme.yml in a PrestaShop theme. I comment out the following:

  hooks:
    modules_to_hook:
      displayFooter:
      #  - ps_linklist
      #  - ps_customeraccountlinks
        - ps_contactinfo

And then I save and FTP the file. The FTP succeeds.

However, the linklist and customeraccountlinks hooks are still displayed in the footer on client browsers.

I've tried to force refresh on the client browser, also to clear cache in back office. Neither of these work.

How do I propagate this updated theme.yml ?

like image 881
Jesse Lynn Avatar asked Dec 01 '17 03:12

Jesse Lynn


2 Answers

You can reset a theme to default within Design -> Theme & Logo -> Reset to defaults, but in this case, you will apply all settings that are written in theme.yml, so be sure that everything consistents your requirements there.

like image 101
Alexander Grosul Avatar answered Sep 22 '22 00:09

Alexander Grosul


If you want reload your configuration :

  1. Modify your theme.yml
  2. Delete the file into ROOT_FOLDER/config/themes/your theme/shop*.json
  3. Refresh your page, prestashop going to regenerate the config json file for your theme
like image 45
Arnaud Scoté Avatar answered Sep 19 '22 00:09

Arnaud Scoté