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

Niharika Singh (not verified)

I love reading this kind of content. i am sure those post is very helpful for everyone. hyderabad call girls services

Rani Shaikh (not verified)

Feel The Heaven is having an absolutely amazing, the most attractive and sensual girls ever. we not only having the most gorgeous escorts Hyderabad has to offer but we also having sweet,charming, beautiful, kind, relaxed and always happy. Many Escorts in Hyderabad work with us. Hyderabad Escorts

Khanak (not verified)

To play around with them, it is possible to look for sensible partners. Feel The Heaven has amazing young women with whom you can have a huge amount of fun. The majority of the guys have hidden dreams and wants that they can’t even believe to express before their spouses. The situation is completely different with Feeltheheaven.com. Hyderabad Escorts Agency

Kavitha (not verified)

We provide the girls who indulge in character and play and seems amazing in most kind of attires. our girls don’t hesitate and share your dream with our supervisor and they will arrange everything for you. When our girls are in bed with you, their's honey dripping body will lure one to her. Call Girls in Hyderabad

Add new comment