Where have all the CSS gone!?

I've watched a OSTraining video course on Drupal 8 and I followed every step as in the video. Everything went well with the installation, but post installation I only see HTML-skelleton, not any CSS-style.

What's wrong?

Sincerely//Felix Rimfrost

Adding Javascript file to head Drupal 8?

Adding the
header: true

Doesn't appear to work, at least on a Bartik subtheme. It won't output anything. If I take that out, it loads the file in the footer as expected. This is a facebook pixel and needs to be in the head section.

This is the code in the theme.libraries.yml

facebook:
  header: true
  js:
    js/facebook-pixel.js: {}

I have no idea why this doesn't work.

Positioning of Page Title Block

Hello,

I'm new to Drupal Development so would appreciate some help/guidance.

I have a website which I'm attempting to build using a custom Drupal 8 theme after seeing how Drupal would be best suited for my needs based on a previous project.

Drupal 8: Logo settings in sub-theme not working

Followed the step to create a subtheme of bootstrap theme. Now, I am not able to see new logo updated, logo is overridden by default logo of bootstrap.

1) Downloaded Bootstrap project (8.x-3.x-dev). Placed the bootstrap folder in theme/contrib

2) Copy the CDN folder from the themes/bootstrap/starterkits folder and pasted in theme/custom folder

3) Changed the cdn folder name to mytheme and all THEMENAME occurrences to mytheme. also the inside file into mytheme.info.yml)

4) Gone to admin/appearance and enabled the mytheme

twig inheritance

Hi,

I was testing twig inheritance.
I have activated theme debug mode in drupal 8.
I can see the file name suggestions for template inheritance.
If I create a file that corresponds with the file name suggestions the template is added and I can override any block of the parent template. Inheritance works.

But I tried to override a block inside a child template that does not correspond with the file name suggestions.
The block is not being overridden.
Inheritance doesn't work.

Twig parent function

Hi,

I have just create a child template, that is overriding a specific block.
But I'm using {{ parent() }} function, inside this block in the child template.

The webpage is giving an error when I'm using parent function.
unexpected error.

Any suggestion?
Thank you.

Using Drupal 8.0.0

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x