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'm trying to override the block template for a specific block generated from a view.
I'm using block--[module]--[delta].html.twig to name the template but can't seem to get the template to work after clearing cache.
It's the delta bit im struggling with - I can target all views blocks using block--views.html.twig perfectly fine, but I just want to target a certain block, not all views blocks.
In my comments form, I have a tick box field for visitors to agree to the comments policy. To that end, the field has help text which links to said policy.
As I would rather prefer to avoid causing any inconvenience, I thought that the best practice may be to show this node (or preferably only the body, but let's take one step at a time) in a small overlayed window, a la many other websites.
I’m working on a custom Drupal theme and want to make sure I’m following best practices. I’ve set up a basic theme using Twig templates and a .info.yml file, but I’d love some advice on:
I updated the Drupal theme successfully on my local lando environment by navigating to /admin/config/development/configuration/full/export on the website, updated the theme name for all the blocks to the new name and imported the configuration file that was created. After all the CSS was fixed, I pushed the changes to the pantheon dev environment. Some config changes which were not trackable were also pushed by the lando push command. For example, when i go to development -> sync >..