Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
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?
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
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.
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
So, I wanted to set body classes in classy html.html.twig specific for every page. I've got from head_title.title classes.
But when I change language body class changes to another head title value for a 2nd language. My question is how I can have body class from head_title.title value to be set for every language to be the same and not translated ?