Community

Create Sub theme (but keep changed files)

Hi all!

I am having an issue with a sub theme under corporateclean.

Last weeks I have been working -and made changes in- following files:

- corporateclean.info
- page.tpl.php
- style.css
- css folder
- images

The changes in these files have to be kept, how do I do this creating the sub theme?

Now I have tried several combinations to set up a new theme. The sub-theme did appear but the css was not reflected according the latest css file but according to the standard (old) css.
The slideshow, which is updated and made out of nodes was also not showing.
More nodes were missing.

Anyone knows who to set up a sub theme with changed files?

Thanks ahead!!

Comments

=-=

if you altered the theme files directly before creating a subtheme then it's up to you to locate those changes and transfer them to files in the subtheme. you can use a diff program to compare the default files with the ones you have. That's exactly why you are supposed to create a subtheme before you alter files.

The slideshow if a views block would have to be re-enabled in administer -> blocks

Hi VM, sub theme up & running

Hi VM,

sub theme up & running but with some missing issues..

Here you can see the situation at this moment:
http://www.gaudimodels.com/drupal

The CSS is not completely coming through as expected.

CorpClean is set up with the 960grid and this was adapted in the page.tpl.php file. (12 columns; instead of the 4-4-4 it was set to 2-7-3)
But adding this file to the submenu doesn't do the trick.

Somewhere is a missing link. 2 errors are generated on the original page.tpl.php file...

Any idea on this?

=-=

what does "adding this file to the submenu" mean?

without seeing the files it's hard to aid. pastebin.com

This is the page.tpl.php file

This is the page.tpl.php file I added in the sub theme, below you will find the ccs.

0McKfeG9

And these are the changes left in the css file:

aUfYmzZa

=-=

please edit your last comment and use pastebin.com as you were asked.

and you did not answer the question of of what you mean by "add this to the submenu"?

you also state "the css is not coming through as expected" however you fail to mention what the expectations are.

Never used pastbin, another

Never used pastbin, another thing to learn.... will check it out

The answer is in the statement itself. I added the updated (changed) page.php file in the sub theme
and was hoping that the changes would be taken over. But this is not happening...

Th css. The main menu for example is not showing bold font but a very thin one.

done ;) can you work with these codes of pastebin? (see prev mess)

=-=

the answer is in the statement itself? page.tpl.php themes an entire page not just a submenu. The question stands, what do you mean by "add this to the submenu?

in future entire absolute links to your pastebin pages are preferable so that they can be clicked on please

Hi VM, I put the whole

Hi VM,

I put the whole tpl.php file because I don't know which info it needs to override the original one.

Here are the 3 complete addresses, the .info file included.

.info = http://pastebin.com/ccZgGujX
.css = http://pastebin.com/0McKfeG9
tpl.php = http://pastebin.com/aUfYmzZa

At this moment missing the slideshow and the page is not showing according to the grid (12 col, 2-7-3, see page.tpl.php)

=-=

there is only one .info file per theme. each instance of the naming scheme of the theme needs to be changed in the .info template.php and theme-settings.php if your theme includes the latter two which your theme does.

if the slideshow based on my quick look at a corporate clean theme download is affected by template.php and theme-settings.php
if the page.tpl.php file is not being picked up make sure to clear the cache.

If I can find some time today, I will create a subtheme using corporate clean and upload it to an issue in the corporate clean issue queue.

=-=

Attached to the following issue is a subtheme of the corporateclean theme: http://drupal.org/node/1861910

The subtheme was tested to the best of my ability on a vanilla install of Drupal 7.x

Any issues with the subtheme should be discussed in the issue linked.