This forum is for assistance with theme development.

Pre-process node, via an entity reference field

I've got a complex arrangement of nodes and references. In a node, I would like to render the rendered content of a referenced node. This is fine, in principle. However, within the node type for the referenced note, I have a theme preprocess function that generates additional field values (information about a book via Google Books).

My preprocess function is:

Twig access entity reference (taxonomy term) in a paragraph template

Hi,

I have a custom paragraph template, in which I'm trying to display a taxonomy term, which is within an entity reference. So,

paragraph > entityreference fields > node > taxonomy term

I cannot seem to find the way in which I can access the taxonomy term within twig.

I've been trying:

sub theme css after the parent theme css

I created a sub-theme, it has a global css style:

*.info.yaml

libraries:
  - own_theme/global-components


*.libraries.yml

global-components:
  css:
    component:
      css/style.css: { weight: 10 }



but my css file included before parent theme css files. How I can include it after parent theme files?

Bootstrap 3 child theme is not loading style.css

Hi all,

I made a Bootstrap 3 child-theme for further theming, but it does not appear to be loading the custom css-file "style.css" located in the CSS directory.

The child-theme itself is loading correctly, it just does not display any custom CSS in that file, and if I'm seeing this correctly, the file is not even loaded in the page-head.

What am I missing here?

Regards,

Gerrit

Different block templates for menu

Hello guys. How can i create different block templates for same menu? Main for example. It's possible at this moment? I tried to copypast everything from menu.html.twig to my custom block block--navbar-menu-primary.html.twig but it's return me empty container. Any ideas or docs?

Drupal 8 - Sub theme of Bartik - Override Bartik css

Hi!

I have a sub theme called Mixtbaby, the base for the sub theme is Bartik.

This is in working order.

Now I want to override the Bartik css for the footer, with my own Mixtbaby css.

I cannot get it to work.

Can you help me with this? As far as I can see, I am doing everything as I should do it according to the Drupal 8 docs.

This the code that should do the trick, but it doesn't override the Bartik css with my own css:

mixtbaby.info.yml:

Pages

Subscribe with RSS Subscribe to RSS - Theme development