Hi community,

i am absolutly new in Drupal and came from ModX.
My question - so simple it seems to be - is just,

how can i make an new (twig) theme from scratch with bootstrap ?
i created a new theme folder called /sly with a sly.info.yml and the following content:

name: Sly
type: theme
description: a rude template
core: 8.x
screenshot: sly.png
libraries:
  - sly/global-styling
stylesheets-remove:
  - core/assets/vendor/normalize-css/normalize.css
regions:
  header: 'Header'
  content: 'Content'
  sidebar_first: 'Sidebar first'
  footer: 'Footer'

In my /sly - Folder i have another one called templates. Here is my (empty) page.html.twig.
I've copied the bartik.theme, renamed it to sly.theme and replaced all function names called with "bartik_" to "sly_".

My page wont change to any direction i tried. Pleas someone can give me a kick or a guide in the right direction ?

Thanks.

Comments

wrender’s picture

Congrats on making the move to Drupal.

Have you tried clearing your Drupal cache? This is needed when you are making template changes.

See here: https://www.drupal.org/node/337176

Wesley Render