CivicTheme
  • Docs
  • Changelog
  • Getting started
    • Introduction
    • Installation
    • Getting help
    • Security policy
    • Partnerships
  • Installation
    • Drupal theme
  • Contributing
    • Contribution model
    • Contribution basics
    • Small contribution spec
    • Medium contribution spec
    • Major (RFC-level) contribution spec
    • Code of conduct
    • Figma contributions
  • Components
    • Component list
  • Content Authoring
    • Overview
    • Global settings
      • Favicon
      • Header
        • Site slogan
        • Header logos
        • Primary navigation
        • Secondary navigation
      • Banner
      • Search
      • Link
      • Skip link
      • Side navigation
      • Signup
      • Footer
        • Footer logo
        • Social links
        • Footer navigation
        • Acknowledgement of Country
        • Copyright
      • Colours
    • Content types
      • Page
        • Configure the banner
      • Event
      • Alert
    • Content components
      • Accordion
      • Automated list
      • Attachment
      • Callout
      • Campaign
      • Content
        • Quote
      • iFrame
      • Manual List
        • Event card
        • Event reference card
        • Navigation card
        • Navigation reference card
        • Promo card
        • Promo reference card
        • Publication card
        • Service card
        • Subject card
        • Subject reference card
        • Snippet
      • Map
      • Next step
      • Promo
      • Slider
      • Webform
    • Vocabularies
      • Topics
      • Site sections
    • User accounts & roles
Powered by GitBook
On this page
  • Install CivicTheme
  • Install Contrib modules
  • GovCMS SaaS specific installation instructions
  • Usage
  • Enabling contrib modules
  • Clear caches
  • Enable CivicTheme
  • Setting up a sub-theme

Was this helpful?

Edit on GitHub
Export as PDF
  1. Installation

Drupal theme

PreviousPartnershipsNextContribution model

Last updated 1 month ago

Was this helpful?

Install CivicTheme

composer require drupal/civictheme

Alternatively, you can download the from Drupal.org and place into the desired location.

Note that Drupal core has a known and a would need to be installed on your site.

Install Contrib modules

CivicTheme has required dependencies on and optional dependencies on search_api.

These dependencies need to be downloaded and installed before you are able to install CivicTheme.

GovCMS SaaS specific installation instructions

See for specific GovCMS SaaS instructions.

Usage

CivicTheme can be used as a no-code Drupal theme with some of the configurations done on theme settings page.

Enabling contrib modules

Due to Drupal , but ).

The contrib module dependencies need to enabled manually or with an automated script:

Enable required modules only

drush ev "require_once dirname(\Drupal::getContainer()->get('theme_handler')->rebuildThemeData()['civictheme']->getPathname()) . '/theme-settings.provision.inc'; civictheme_enable_modules(FALSE);"

Enable required and optional modules

drush ev "require_once dirname(\Drupal::getContainer()->get('theme_handler')->rebuildThemeData()['civictheme']->getPathname()) . '/theme-settings.provision.inc'; civictheme_enable_modules();"

Clear caches

drush cr

Enable CivicTheme

Enable the theme in UI or with Drush:

drush then civictheme

Setting up a sub-theme

See section to create a sub-theme and use CivicTheme as a base theme.

latest version
issue
patch
contrib modules
Using in GovCMS SaaS
allowing themes to declare module dependencies
does not yet allow those modules to be enabled automatically
Sub-theme