This forum is for assistance with theme development.

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?

Theme Will Not Install

Using Drupal 7.53.

Installing Nexus Theme, get this message:

Error installing / updating
File Transfer failed, reason: Cannot create directory /home/solidarity/www/www/sites/all/themes/nexus.

How to get body class from head_title.title just for one language

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 ?

Pages

Subscribe with RSS Subscribe to RSS - Theme development