Sarah CarneyIncluding layout description in Layout Builder ‘configure section’ for Drupal 9Drupal 9 allows us to create custom layout ‘classes’ so that in Layout Builder, the ‘add/configure section’ can have custom options.Jul 13, 2023Jul 13, 2023
Sarah CarneyAdding helpful CSS classes to elements in Drupal 9 themesHello! It’s been awhile since I’ve written something. I want to share a smattering of examples of adding classes to different elements in a…Aug 16, 20221Aug 16, 20221
Sarah CarneyLet Drupal 8/9 templates know the difference between the default logo and custom logoDo you want to add a different class to the site logo depending on if it’s the default logo or custom? Maybe! If so, here’s how.Jul 29, 2021Jul 29, 2021
Sarah CarneyUsing conditional Twig logic in Views replacement patterns in Drupal 8If you are using fields to display content in a View, you can do some of the things in Replacement Patterns as you can do in a theme…Apr 29, 2021Apr 29, 2021
Sarah CarneyGrouping events by year in Drupal 8 using the date range field typeWe have an events content type that uses the date range field type. We display our events as a list on a page. We wanted to group the…Apr 15, 2021Apr 15, 2021
Sarah CarneyCustom block type for a Stat Card in Drupal 8Here is how I created a simple custom block type in Drupal 8 to highlight a statistic. I’m going to take it step-by-step, provide all code…Apr 15, 2021Apr 15, 2021
Sarah CarneyChanging the HTML of Views ‘Grouped by’ in Drupal 8. Sort of.Drupal 8 Views allow you to group Views rows by Taxonomy terms (as an example). This tutorial is about how to control the HTML and styling…Jan 14, 20211Jan 14, 20211
Sarah CarneyAnatomy of a Drupal 8 ThemeOverview of Drupal 8 theming aimed towards beginners or anyone who wants a better idea of what their themers and front-end developer…Oct 19, 20201Oct 19, 20201
Sarah CarneyDrupal 8 Field GroupsDrupal 8 comes with a few ways to group fields on a form via the Manage Form Display tab of content types. Thought I’d just go over them…Jul 16, 20201Jul 16, 20201
Sarah CarneyMove field description below label in Drupal 8Right now in Drupal 8, field descriptions appear below the input. But D8 has description_display built into the backend that we can access…Jan 8, 20202Jan 8, 20202