I need to duplicate an already created sub theme so I can modify its styles. I can find a lot of documentation on creating sub themes but none on this.

Ive duplicated the theme folder and changed the name. Ive changed the name of the .info file and the theme name of the theme overrides in template.php and theme-settings.php.

When I switched to the new theme I expected it to be identical but it wasnt. There are settings on the theme settings page in Drupal that need to be changed also. Are there any other places where settings are saved that I need to look at? My new theme still differs from the original but im wondering if this is due to an unrelated issue.

Comments

Christopher James Francis Rodgers’s picture

@jdln:

Sorry to hear about your troubles,
and I hope you have this resolved by now.

What you did should have worked.

It has been years since I used Drupal 6,
but I think you were on the right track:

1. Make a copy of your existing sub-theme's folder,
rename it, and put it in the same directory
along-side your existing sub-theme,
just as if it were any brand-new sub-theme.
(Start it with lower-case alphabetic character,
and use only lower-case alphabetic characters,
numerals, and the underscore character.)

2. Change the *.info file name to match
the new sub-theme's folder name from step 1 above.

3. Edit the *.info file, and specify its unique "name"
on the proper line.

4. (The other recommended changes,
which I do not remember exactly,
if is the case as it is for Zen in Drupal-7,
are optional, anyway... but if not...)

===

If all else fails, just create a new sub-theme
according to what is recommended,
(you can have as many Zen separate sub-themes as you like)
and substitute into the new sub-theme
any CSS (and/or other) changes you had made
to your original existing sub-theme,
and you should be ready to go.

Christopher James Francis Rodgers’s picture

One more thing comes to mind...

Changes made to theme "Settings"
must be made to each individual theme or sub-theme,
and not to the "Global" settings,
since the Global settings are only applied to a theme or sub-theme
upon that theme's initial installation or creation.

In other words, changes you make to the Global settings now
will only affect and apply to new themes and sub-themes
that you might install or create in the future.

JohnAlbin’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.