This forum is for assistance with theme development.

STICKY: Theme development forum guidelines

The theme development forum was created to aid those who are developing themes for Drupal. This forum is not for issues you may be having with contrib themes. Issues with contrib themes should be placed in the issue queue of the theme in question. Please respect this.

If you you have drupal installed already and are seeking a theme, have a question about a specific theme and what it does or if it will fit your use case, please place your questions in the Post installation forum.

Inline critical CSS

I am using Lighthouse to optimize my sites, and one of the recommendations is inlining critical CSS, so I am now using https://www.drupal.org/project/critical_css for this, and it works great.

How can i update components slots

I have fresh install on drupal cms.

I found theme header component.
web/themes/contrib/byte_theme/components/navbar/navbar.component.yml

I add three slots:

```slots:
  logo:
    title: Site logo
  navigation:
    title: Navigation menu
  links:
    title: CTAs
  links2:
    title: CTAs2
  example:
    title: Example

```

I can see them on my canvas edit. but when i change in CTAs i can see change in title.

Git Workflow for Multiple Developers — Suggestions?

Hi all,

I’m curious about how different teams manage Git workflows with multiple developers.

Do you prefer Git Flow, GitHub Flow, or something else?
Any tips for keeping things organized and avoiding conflicts when several people work on the same repo?

Thanks for sharing your experiences!

TWIG with IF, Views Cache - Constant old Output

Hey there,

i hope somebody here can give me a hint. I have build a Drupal 11 Site and create View that gets the Start-Date of an Datefield from Node-Type Event.

I want to switch by the Date a Text on the FrontPage like this:

Menu displays in header but not primary menu region

I've started on a new theme (generated from stable9 with the drush command), and everything else seems to be working, except the main navigation doesn't display when I place it in the primary menu region. In fact, nothing in that region displays despite it being defined in the yaml and twig templates. However, they display properly when I drag them into header. This is true on all pages. 

So I have 2 questions: 

1 - The obvious "is there a way to fix this" 

Pages

Subscribe with RSS Subscribe to RSS - Theme development