Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The original template (file-link.html.twig) sets a.title to the file name. I want a.title to display the file description field.
Is it the right and safe solution?
I have a theme X that implements X_theme_suggestions_page_alter. It adds a new template suggestions named "page__fwidth" for some content types.
When the theme X is enabled the theme loads the file named page--fwidth.html.twig for the desired content type.
Now, if I create a sub-theme Y that has X as the base theme and activate it, the suggestion defined by X is not available. Probably because the file X/X.theme is not loaded. How can I have all the stuff in X.theme loaded when the theme Y is activated?
Olivero's sidebar (.sidebar-grid .region--sidebar) is a bit too small, especially on the larger screens, to insert graphically interesting contextual blocks.
How to enlarge it safely?
I tried overriding in a custom-grid.css the grid-columns of '.sidebar-grid > .site-main, .sidebar-grid .region--sidebar' and apparently it works.
I'll probably have to increase the max-width of page-wrapper a little as well.
Then in cascade I will possibly have to make adjustments for the various @media.