This forum is for assistance with theme development.

Drupal 8 - Stark theme own CSS file

Hello everyone,

I'm trying to use a CSS file for styling the Stark theme.

How can I use a CSS file for styling the Stark 8.0.1(core) theme?

stark.info.yml

How to add a node ID as class to the <body> tag in D8

In Drupal 7, there a class e.g "path-node-17" added to the body tag so that we can target a particular node easily but this is missing in Drupal 8, I wonder how to get this node id class output in the tag in Drupal 8.

jquery class returning undefined in drupal

Is there something I don't know? I making a jquery to hide a div onclick, but after throwing an alert in there to see what was wrong, it shows class = undefined.

There is definitely a class, it is definitely named correctly. I even tried different items, different classes. What gives?

I have this:

Removing Libraries

Hello Friends!

I'm currently playing around with / attempting to create a theme from scratch. I'm now looking to clean things up a little bit and remove much of the default libraries / css / javascript that is added. I've managed to remove modernizr but my biggest issue is figuring out how the paths relate to the actual libraries.

example: There is a piece of javascript called collapse.js which doesn't seem to be remove by core/misc/collapse, core/collapse etc.

Filtering view with nid & view

I have a 'services' content type with several entries. One of its fields is a term reference checkbox field of the products this service can go with (using taxonomy). I'm now creating a views block to show the attached services on each product page but don't know the next step...

I'm trying to understand how to do this: "If on product page 'Bar', list any services where their field "Foo" = "Bar"

I'm stumbling around in the dark on this one, trying to learn.

Distribution and Themes

Hello - If you are using a Drupal distribution such as Open Public, can you apply a different theme without compromising the other reasons for using a distribution?

Thank you for any insight.

Pages

Subscribe with RSS Subscribe to RSS - Theme development