i have created branches in the site , where each branch should have their own stylesheet,
the main site has allready been implemented .
i have modified the theme chameleon.(main theme)
the problem is that this main theme stylesheet is also beeing called when i go to one of the branche site.

<style type="text/css" media="all">@import "modules/simplenews/simplenews.css";</style>
<style type="text/css" media="all">@import "modules/taxonomy_context/taxonomy_context.css";</style>
<link rel="alternate" type="application/rss+xml" title="RSS - clearview_ref" href="?q=taxonomy/term/13/0/feed" />

 <link rel="stylesheet" type="text/css" href="themes/chameleon/common.css" />
<style type="text/css" media="all">@import "themes/chameleon/style.css";</style><style type="text/css" media="all">@import "themes/pushbutton/style.css";</style></head><body>

as you can see i am calling the pushbutton theme , but for some reason it still calls up a few style sheet of chameleon.

example to be seen at
http://pelosa.project-8.nl this the main site

this is the branch site http://pelosa.project-8.nl/?q=clearview_main , attributes of chameleon is being called , see the header etc.

Comments

Heine’s picture

I can confirm the problem (others have noted them as well: http://drupal.org/node/53426) on a local installation. The problem is that init_theme happely initializes the theme system again. When you replace this with a call to theme(), the 'normal theme' is fixed. Clearly the theme system has been initialised before taxonomy_theme can do anything.

The problem is pronounced with phptemplate themes (fatal errors).

Changing on line 194

function taxonomy_theme_menu() {

to

function taxonomy_theme_init() {

solves the problem (for now; it's Fridayevening and I need a break).

I'll post a detailed 'steps to reproduce' at the issue later.
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.