I've just upgraded to D6, although I have placed my custom theme in sites/all/themes/myTheme, it isn't showing up as an option in drupal's theme panel in administration, but it used to in 5.x. Any ideas why it isn't showing up as an option?

Comments

scoutbaker’s picture

Check out http://drupal.org/node/132442 for information on converting themes from 5.x to 6.x.

"Nice to meet you Rose...run for your life." - The Doctor

Drupppal’s picture

I'm not converting or updating a D5 theme to D6. It's already a D6 theme. But not showing up in options. The theme is located in sites/all/themes/myTheme.

styro’s picture

I'm not converting or updating a D5 theme to D6. It's already a D6 theme

or

it isn't showing up as an option in drupal's theme panel in administration, but it used to in 5.x.

Those statements seem to contradict each other. Unless you were either somehow using a Drupal 6 theme on your Drupal 5 site, or you are talking about two different themes?

In Drupal 6 themes need .info files to appear in the themes listing. Note: that is mentioned in the first item on ScoutBakers link about updating Drupal 5 themes to Drupal 6..

--
Anton
New to Drupal? | Troubleshooting FAQ
Example knowledge base built with Drupal

Drupppal’s picture

Styro, I'm testing out Garland v6 (renamed myGarland) in the location, sites/all/themes/myTheme. But it's still not showing up in themes listing. I noticed it has a garland.info file. Is renaming its .info file to myGarland.info ok? or will it cause some sort of problems? Is this the only file/code I need to modify? Will it not cause some sort of conflict with garland itself or any other files?

styro’s picture

2 themes with the same name in the system.

You will need to rename all Garlands PHP function names (you can't define the same PHP function twice), the info file, the theme name in the info file etc etc.

--
Anton
New to Drupal? | Troubleshooting FAQ
Example knowledge base built with Drupal

Drupppal’s picture

By the way Styro, when I changed the .info file to myCustomGarland, the myCustomeGarland did show up in theme listings. Do I still need to change its PHP function names? What are function names? And how many php function names are there to change?

I like using Garland. But obviously I can't use the Garland itself as my theme, or can't I? I have read on here that you should always use My_Garland as your theme, instead of Garland itself. Is there anything wrong with using Garland itself, from its original natural location? It seems like it would save me a lot of time and trouble if I did.

styro’s picture

Do I still need to change its PHP function names? What are function names? And how many php function names are there to change?

The functions should all be in a template.php file - but a complex theme like Garland might have other code too (I don't know Garland very well).

Generally, function name conflicts aren't as much of a problem with themes because there is usually only one used for each page view (modules are a different story though). Renaming the functions is just to keep it a bit cleaner and more self contained.

I like using Garland. But obviously I can't use the Garland itself as my theme, or can't I? I have read on here that you should always use My_Garland as your theme, instead of Garland itself. Is there anything wrong with using Garland itself, from its original natural location? It seems like it would save me a lot of time and trouble if I did.

Are you customising it much? If you aren't customising it, then just use the original one. If your customisations are just CSS, then you could try just making a subtheme (I'm not that experienced with subthemes).

The reason making a copy is recommended is so that your changes don't run the risk of getting overwritten by a security patch or point update. But most minor updates don't involve themes (especially the themes CSS), so the risk is low. Looking at what has changed with each update and testing updates on a test site first should alleviate that risk.

--
Anton
New to Drupal? | Troubleshooting FAQ
Example knowledge base built with Drupal

Drupppal’s picture

How about other risks of using the original Garland as your theme, such as vulnerability in security, or problems in functionality? Either when live-online or during updates. Do these risks exist?

rflemin’s picture

I'm trying to change my default theme from one of the core themes to a downloaded, unpacked, and moved theme (AD Blueprint). I've tried putting it in the main Themes directory with the core themes, in SItes/All/Themes, and in Sites/Default/Themes. It still won't show up on the Administer/Themes list. As far as I can tell, I have the correct Themes engine (phptemplate). I did manage to get another theme to show up in the list (blue marine), and as far as I can remember did just the same thing. Maybe its a memory thing, like when I put new modules in the Module directory, I get the White Screen of Death until I increase memory ceiling in php.ini. Any help gratefully accepted.

Wideboy’s picture

Hi guys, Im getting the exact same problem as Rob in the above post. All theme folders are where they are supposed to be, but when I go to the themes page in my "local" drupal site - Nothing appears (apart from the normal themes that are there as default)

There must be a setting us n00bs arent ticking or something, but I obviously dont know what it is.

Any feedback will be welcomed.

Thanks

Wide