Jump to content

[theme] theme layouts back to default on cache clear (1.7.1.1)


Recommended Posts

hi everyone, i've my own theme (a copy of classic theme). i customize the theme layouts page style (from one column to two column etc..). i save settings and correctly see the edited page. evertythings work well until i clear cache, this way my theme layouts settings back to default. how can i do to avoid that?

Link to comment
Share on other sites

  • 2 months later...
  • 1 month later...
  • 8 months later...

To solve this problem you can manually edit your theme.yml in /themes/_yourTheme_/config/theme.yml

There is an existing entry: theme_settings:

 

theme_settings:
  default_layout: layout-full-width
  layouts:
    index: layout-left-column
    category: layout-left-column
    best-sales: layout-left-column
    new-products: layout-left-column
    prices-drop: layout-left-column
    contact: layout-left-column
    product: layout-left-column
    search: layout-left-column
    cms: layout-left-column

 

Simply add here sections and layouts...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...