Zen Cart Logo

Renaming a template

Views: 751

Results 1 to 10 of 10
16 Mar 2011, 5:59 PM
#1
treece avatar

treece

New Zenner

Join Date:
Aug 2008
Posts:
47
Plugin Contributions:
0

Renaming a template

I started with the Classic template and made a ton of changes but it's still called "Classic". I am wondering if I should have renamed it, and if so, can I still do that or is it a recipe for disaster?

16 Mar 2011, 6:04 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Renaming a template

Yes, you should have made your own templates and overrides directories ...

What you can do is rename all of the current directories for:
/classic

to your own template name:
/your_new_template_name

customize the file:
/includes/templates/your_new_template_name/template_info.php

then, once all of the files are in the new directories for your new template, you should be able to reload the original /classic and all of its files to the server so that you now have a clean Classic Template and your own customized template ...

Be sure to backup your database and your site before making these changes and straightening out your files and directories ...

16 Mar 2011, 6:07 PM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Renaming a template

Yes, you can and should rename or copy all of the /classic/ folders to /your_template/ (whatever name you want). Also edit the template_info.php file to reflect your custom info and name.

It would then be helpful to copy in a set of /classic/ folders & files from a fresh set of Zen Cart files (same version as yours) so that you have a functioning Classic template for testing against.

Looks like Linda typed faster than I did... :)

16 Mar 2011, 6:17 PM
#4
treece avatar

treece

New Zenner

Join Date:
Aug 2008
Posts:
47
Plugin Contributions:
0

Re: Renaming a template

Thank you both. Wish me luck! Files are backed up and I'm ready to try this.

16 Mar 2011, 6:34 PM
#5
treece avatar

treece

New Zenner

Join Date:
Aug 2008
Posts:
47
Plugin Contributions:
0

Re: Renaming a template

OK, I renamed the classic folder to a new name and edited the template_info.php. Clearly I missed something because I lost all of my new CSS changes. What other file or folder do I need to edit?

I guess I'm missing this: when you say rename "ALL of the current directories" I'm clearly missing something.

Thanks again.

16 Mar 2011, 6:43 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Renaming a template

Did you then go to the Tools ... Template Selection ... and select your new Template?

Next, did you go to the Tools ... Layout Boxes Controller ... and configure it for your sideboxes that you want to use?

16 Mar 2011, 6:49 PM
#7
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Renaming a template

Which /classic/ folders did you rename? Aside from
/includes/templates/classic/
there should be at least
/includes/languages/classic/
/includes/languages/english/classic/
and others if you have certain mods installed.

16 Mar 2011, 6:56 PM
#8
treece avatar

treece

New Zenner

Join Date:
Aug 2008
Posts:
47
Plugin Contributions:
0

Re: Renaming a template

Well, duh...I didn't reselect the new template name. Still, there is only the shell and I clearly have a lot of adjustments to make. I made a lot of customizations that disappeared. I appreciate your help.

16 Mar 2011, 7:45 PM
#9
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Renaming a template

If you put all of your customizations in /classic/ folders, and copied/renamed ALL of the /classic/ folders, your customizations will come over without redoing them.

16 Mar 2011, 11:24 PM
#10
kdays avatar

kdays

Zen Follower

Join Date:
May 2008
Posts:
239
Plugin Contributions:
0

Re: Renaming a template

In your stylesheet, are you referring to background images and the like with full paths that perhaps have 'classic' in them?

What's your URL? We could have a quick look then and see what's missing.