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.
I have a content-type with 6 different CKEditors for several different parts of the page. Some of these will have a very different layout in the frontend and I would like to style the content in the WYSIWYG to look the same for each instance but there is absolutely no way to target the content in each individualy.
I try to use the image that should be available for each node of a particular Content Type. In the content type I have added a field_image (system name) with label "Branding Region Backgound". I have made a template file "block--system-branding-block.html.twig" which works fine. But ... how to get the image that is defined / uploaded for each content page of this particular Content Type?
This trail {{ file_url(node.field_image.entity.fileuri) }} is not working.
I'm currently working on a site in Drupal 7 with the Skeleton theme.
For tables I create in content there is spacing between each row. If I switch to a different theme, there is not. I have compared the HTML output on both and do not see any difference in the HTML around the table.
I'm pretty sure that I need to edit something in the CSS, but I can't figure it out.
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.