This forum is for assistance with theme development.

Views Pages and Themes

Hi,

Not sure if this is the right place to pose the question but here it is anyway.

I am learning the Umami distribution and was playing around with the front page views and the theme regions. I wanted to know in which region the default view page appears. This was not clear so I started to delete regions from the umami theme info file. I got to the point where I deleted all of the regions but still the view page output appeared on the front page.

Way to change default theme from Cpanel?

Hello,

I am working on my second website and have somehow broken it and had intermittent access yesterday, and what seems to be no access today. I suspect it is a DNS error, as I sometimes can't even access Cpanel, but I wan't to eliminate all variables.

Theme Drupal 9

Good afternoon:

I would like to help me if it is netre its possibilities, I want to create a theme from scratch in Drupal I have achieved it in Drupal 8 and I would like to know if this section changes a lot in Drupal 9, or if you have any tutorial or documentation in Spanish

naming twig

Hi! How can I set name to page template depending on the type of material in drupal 9? Thanks.

Adding content between body and comment

Hi there,

I'm trying to add some content between the node content and the comment section.

I use a custom theme based on Classy.

The node.html.twig template in the Classy theme contains this section:

  <div{{ content_attributes.addClass('node__content') }}>
    {{ content }}
  </div>

The content placeholder gives out both the body content and the comment section.

How would i seperate these two, so i can place other content (exaple: block) between the body content and the comment section?

I appreciate any help with this.

field_link Add class

So, I know I can do this through preprocess or even creating a field formatter.

Let's say I don't feel like doing all of that because I consider it overhead. I went and use the following

{{ content.field_link[0]|merge({'#options': {'attributes': {'class': ['your-class my-class']}}}) }}

Now, I had the template for field_link overwritten, and I noticed that when I used this option it stopped using my template. Is there a way to add a Class to a field_link in Twig without it breaking your template?

Pages

Subscribe with RSS Subscribe to RSS - Theme development