How to create a Drupal 8 Bootstrap subtheme

Posted by admin on Thu, 12/21/2017 - 13:56

In this article I will show you how to create a Bootstrap subtheme for Drupal 8.

1. First of all - you need to download, install and enable Bootstrap theme (https://www.drupal.org/project/bootstrap).

2. Open the Bootstrap folder and find the folder /starterkits/cdn inside bootstrap theme folder.

3. Copy /cdn folder to your drupal /themes folder so you will have your_site/themes/cdn

4. Rename cdn to your theme name. Lets say it will be /mytheme.

5. Now you need to replace THEMENAME word to mytheme inside your mytheme folder:

  • /config/install/THEMENAME.settings.yml
  • /config/schema/THEMENAME.schema.yml
  • /THEMENAME.libraries.yml
  • /THEMENAME.theme

6. Starterkit file is needs to be renamed from /THEMENAME.starterkit.yml to /mytheme.info.yml

7. Now open your mytheme/mytheme.info.yml
Change name: 'THEMETITLE' to name: 'mytheme'

9. Open /config/schema/mytheme.schema.yml
Change label: 'THEMETITLE settings' to label: 'mytheme settings'

10. Now go to drupal admin 'Appearance' and you sould see mytheme in the list of themes.
Enable that and set to default!

 

×

Hey! Don't miss a new cool stuff!

Comments

RichardStone (not verified)

I have to inform followers that this documentation page is missing essential quality, so please make an effort to remain cautious and read the engineer documentation painstakingly before utilizing this workaround from here online dissertation help uk. It thwarts the diligent work of the engineers and donors on the amazing and gigantic documentation accessible for Bootstrap Drupal implementation.

Henna (not verified)

Smooth, natural, and great portable first front end structure for quicker and simpler web advancement. Bootstrap has turned out to be a standout amongst the most well known front end systems and Animation Video Production open source extends on the planet. Drupal 8 Bootstrap comes stacked with two starter pack topics for you to make a youngster or sub subject with where my topic is the machine name of your topic.

Anonymous (not verified)

The subtheme is over and ther is nothing that I can do about I on typemyessays.com review. I've seen people talking about it ad they know what to do for it. It will be good.

Membrane Filters (not verified)

I truly appreciate basically perusing the majority of your weblogs. Just needed to advise you that you have individuals like me who value your work. Certainly an awesome post. Membrane Filters

frank (not verified)

Bootstrap 8 volume will end very soon with the introduction of essay order uk and nothing will take place for it. It will be the longest thing for me to have and I will not be able to do anything on it.

Add new comment