I'm doing some tests using Barrio theme. I created a subtheme using the provided script.
Barrio provides a lot of customisation possibilities using Appearance page. However, I would like to go beyond them and modify CSS files. However, I don't know how to clearly target an element of the page, to find the proper CSS file, and then modify it, to alter only the targeted element, without consequences somewhere else.
Is there any tutorial for that how to gain more control on our theme ?
I heard of Twig debuger module, which modify HTML generated code.
Image_field, link_field, and List Field that consist of:
s|Small
m|Medium
l|Large
In twig I want to have an if statement that if you select "s", wrap image_field and link_field with a div class of .small. If you select "m", wrap image_field and link_field with a div class of .medium...etc.
I tried doing this, but I'm still getting ALL my content rendered with .small div class:
I'm relatively new to the Drupal environment and trying to develop a website for a while.
Here's my problem.
I have created a taxonomy vocabulary with a few terms. Each term has a description (just an image).
These terms are selected in a specific content.
I want to display in that specific content a field integrating a view conditionned by one of these terms only showing the description according to the term selected.