Disable Fusion (or certain parts of it)

Disable Fusion (or certain parts of it)

3 posts / 0 new
Last post
CdexDev2's picture
cdexdev2
Points: 11
Disable Fusion (or certain parts of it)

I have built a new theme, using a different responsive grid framework (Zurb Foundation), and would like to disable the Fusion grid system and all CSS generated by it.

If disabling just those parts is very complicated because it requires a lot of removal of code, I'd like to just disable Fusion entirely. Unless I totally misunderstand how theming works, I do not believe I need Fusion since the new framework also has a grid, UI-related javascript & CSS.

Any insight is appreciated.

Status: 
Unresolved
CdexDev2's picture
cdexdev2
Points: 11

Simpler question which I cannot seem to find a direct answer for on the Web: has Fusion (and its grid system) been integrated into Commons core?

Careeradex Dev Team Member

CdexDev2's picture
cdexdev2
Points: 11

From what I can tell, yes, the Fusion grid system has been integrated into Commons via the "Commons Roots" theme. My new theme uses "Commons Roots" theme as its base theme, which in-turn uses "Fusion Core" as its base theme. Removing "Commons Roots" as my theme's base theme does successfully disable the grid system, of course, but it also disables every other Fusion feature (including major UI components like the primary navigation!).

I need to retain these Fusion features, while disabling the grid.

Here's my plan...

  1. Clone "Commons Roots" theme (located in docroot/profiles/drupal_commons/themes/fusion/fusion_core).
  2. Clone "Fusion Core" theme (located in docroot/profiles/drupal_commons/themes/commons_roots).
  3. Change cloned "Commons Roots" theme's "base theme" to be cloned "Fusion Core" theme.
  4. Remove all grid-related CSS & CSS references from clone's "Fusion Core" theme.

Careeradex Dev Team Member