Jump to content

Create Classic subtheme


Recommended Posts

hi guys,

 

Do have a best practice to create a subtheme of Classic default theme in Prestashop 1.7?

 

And does the subtheme is impacted by the core update?

 

I as that because after upgrading to 1.7.0.2 i losed css and html modifications i've done in Classic theme ^^

 

Thanks guys 

Link to comment
Share on other sites

I tried 1 method


 


First duplicate Classic theme.


 


Modified config/theme.yml in my new theme (name, display name), then compress into zip file, and in administration :


Design > Theme & Logo > "Add new theme" > Import from computer


I import via zip file and i have this error:


 



This theme is not valid for PrestaShop 1.7


Does someone knows if have others things to modify to be "valid"?


Link to comment
Share on other sites

  • 2 months later...

Hello, I am getting exactly the same error, I am trying either duplicating Classic Theme, or adding Starter Theme.

 

This theme is not valid for PrestaShop 1.7

 

No way to add a new theme in PS 1.7.0.5 

 

Any help or tip ?

 

Thank you

Link to comment
Share on other sites

Hi guys,

 

Find a solution from another topic. If you follow these steps it works:

 

1- copy/paste Classic subtheme in theme folder and rename it

2- go to themes admin page and choose to use your new theme

3- export it

4- delete your copy of Classic subtheme

5- import the zip file newly create from your themes admin page

 

And that it

Link to comment
Share on other sites

  • 1 year later...
On 3/9/2017 at 5:37 AM, Grem83 said:

Hi guys,

 

Find a solution from another topic. If you follow these steps it works:

 

1- copy/paste Classic subtheme in theme folder and rename it

2- go to themes admin page and choose to use your new theme

3- export it

4- delete your copy of Classic subtheme

5- import the zip file newly create from your themes admin page

 

And that it

 

 

 

This does not work for me. Followed all steps. First issue was that I was using a dash in theme name. Fixed that. Now my issue is that I cannot switch to the copied theme. I'm getting the error

"The template "assets/css/theme.css" is missing."

 

Edited by Nepherael
additional information (see edit history)
Link to comment
Share on other sites

1 hour ago, Nepherael said:

 

 

 

This does not work for me. Followed all steps. First issue was that I was using a dash in theme name. Fixed that. Now my issue is that I cannot switch to the copied theme. I'm getting the error

"The template "assets/css/theme.css" is missing."

 

 

Fixed my issue. Do not use dashes in theme name.

- export current theme

- download theme to local machine

- unzip theme

- rename folder name

- modify themename/config/theme.yml file top 2 lines to your theme name (no dashes or spaces)

- compress folder

- upload via FTP

- decompress

- then I could switch to the newly created theme (may not need to zip it for the upload)

Edited by Nepherael (see edit history)
Link to comment
Share on other sites

  • 8 months later...

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...