Provus 2.0 Documentation
  • 👋About Provus
    • 🖥️Provus Demo
  • Overview
    • Provus Features
      • Content Creation
        • Bootstrap Site Alert
        • Blog
        • FAQ Page
        • Event
        • Landing Page
        • News
        • Person
      • Layouts and Components
        • Layouts
        • Components
          • Heading
          • Button
          • Basic Text
          • Media
          • Divider Line
          • Card
          • CTA
          • Testimonial
          • Large Banner
          • Short Banner
          • Tabs
          • Group
          • Group Automatic
          • Stat Group
          • Slideshow
          • Photo Gallery
          • Person List
          • FAQ Group
          • Accordion
          • Files List
          • List
        • Template Library
  • Getting Started
    • Installation
      • Using Docksal
      • Using Lando
      • Using DDEV
      • Provus Modules
    • Theming
      • Create subtheme by script ( recommended )
      • Create subtheme manually
      • Custom Theming
        • Fonts and Colors
        • Headings / Typography
        • Header / Footer
        • Components
  • EXTRAS
    • ✨Kick-starter
    • ⚔️Contribution Guide
    • 💡Release Notes
    • 👏Go live list
Powered by GitBook
On this page

Was this helpful?

  1. Getting Started
  2. Theming

Create subtheme manually

PreviousCreate subtheme by script ( recommended )NextCustom Theming

Last updated 1 year ago

Was this helpful?

Copy the provus_bootstrap folder on your /themes/custom directory.

Rename the provus_bootstrap folder to your custom theme name, for example yourname

Rename the following files from provus_bootstrap to yourname: provus_bootstrap.theme to yourname.theme provus_bootstrap.info.yml to yourname.info.yml provus_bootstrap.libraries.ymlto yourname.libraries.yml /config/install/provus_bootstrap.settings.ymlto /config/install/yourname.settings.yml /config/schema/provus_bootstrap.schema.ymlto /config/schema/yourname.schema.yml

Edit the file yourname.info.yml

name: YourName
type: theme
description: 'Your Description.'
version: VERSION
core: 8.x
base theme: bootstrap_barrio
libraries:
- yourname/global-styling

Make sure that yourname/bootstrap_cdn is the (CDN or local).

Delete the following:

# Text here
version: '8.x-4.17'
core: '8.x'
project: 'bootstrap_barrio'
datestamp: 1533828192

Edit /config/schema/yourname.schema.yml

# Schema for the configuration files of the Bootstrap Barrio Subtheme.

yourname.settings:
type: theme_settings
label: 'Yourname settings'

Edit yourname.theme

Rename the function from:

function provus_bootstrap_form_system_theme_settings_alter(&$form, FormStateInterface $form_state)

to:

function yourname_form_system_theme_settings_alter(&$form, FormStateInterface $form_state)

For a complete explanation on how to write sub-themes on Drupal 8 please refer to the

Bootstrap library you want
Creating a Drupal 8 sub-theme Guide