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.

Display the 1st image from field_image in a theme twig?

If a content type had several images, how can we display the 1st image from field_image in a theme twig?

Styling teaser image on custom content type?

My theme has styling for custom content type Article Teaser image (field_image) and I want to apply this styling to another content type (Review) teaser which uses a different image type (field_intro_image). I've copied the node--article--teaser.html.twig to node--reviews--teaser.html.twig which has {{content|without('field_image', 'links')}} within.

But the teaser image does not get displayed correctly. I've also tried {{content|without('field_intro_image', 'links')}}, how do I correctly do this?

using a copy of a theme to work on as a test theme

I am using Mix n Match theme.
I've got a Custom Mix n Match theme present and i want to not only change colors, blocks, etc, but want to change the whole thing - menu items etc.
Can I use this custom child theme to make change in the structure and NOT have them show up on the main theme that is out in the public?
Thanks, Deb

Display articles and comments on same screen

This may be something I have broken myself, I have been searching all day and nobody seems to have the same problem. On my front page I have 2 links under every teaser, one for "read more" and one for "add new comment" I would be happy with only the "read more" link but when you click it there is no way to comment. This is a 12 year old site and I don't remember ever having this happen on any of my sites. I am using a Zen subtheme.

Theme install error

I have a problem installing the theme which gives me an error like "The website encountered an unexpected error. Please try again later." and the console gives a 500 error

why?

Pages

Subscribe with RSS Subscribe to RSS - Theme development