Cards

Cards are blocks of data that contain a photo, a title, a subhead, and a teaser. Those items can be reordered or deleted to fit your needs. They are vertical items that can be made into a horizontal list.

Getting Started Tip

Although not required, cards are typically used in grids. Add the grid first, then add the cards in each grid item. If you have a full-width page (no left-hand secondary menu), you should probably use a 3- or 4-column grid. If you have a left-hand secondary menu, you should probably use a 2- or 3-column grid.

Learn About Grids


Add Cards

To create a card, you will need to click on the template icon in the editor toolbar.

the Drupal content editor toolbar with a red rectangle around the templates icon

Choose the second option labeled "Card (V2)" then click the "Select Card (V2) Options" button. 

screenshot showing how to add a card template

On the Insert Card (V2) Template, select "Card (Basic)" then click the "Insert Template" button. This will add a card to your page. 

screenshot showing how to insert a card template

You can now type your text for the card title, subtitle, body copy, and call to action button.

screenshot showing how to replace a card image

To add your photo, click on the placeholder image then select the add image icon in the WYSIWYG editor. That icon will bring up the media browser popup box that you see when you add new images and will function exactly the same, except you are replacing the existing placeholder image with a new one. Follow the same steps as adding a new image and the old image will be replaced by a new one.

Note: These examples show a card that is added to the left side of a two-column grid.


Add Card Items

To add additional components to a card, right click in the card box and select "Edit Card (V2)" to bring up the sidebar menu.

screenshot showing how to edit a card

From the sidebar menu, select the "Add" option. If you expand the different card sections ("Card Header", "Card Body", and "Card Footer") you will see different components you can add to those sections. The section you are adding to will be outlined in a blue dash in the editor window. Click any of the components to add to that specific section of the card.

screenshot showing how to add a card component to a card
In this example, we would click "Add Social" to add a social share component to the card header section.

To add new components below the current card components on the page, select "Card (V2)" under the "Add" section of the sidebar menu. 

screenshot showing how to add a component below a card
In this example, we would add an image below the call to action button.

Card Modifiers

Inset Image

Cards are automatically defaulted to have the image left aligned to the edge of the card. You can modify this to make the image align with the text below it by selecting "Modifiers" then "Card (V2)" from the sidebar menu. From here, click the "Inset Image" button and you will see that the image now aligns with the text below it.

screenshot showing how to make a card image align with text below it

Card Backgrounds

Cards are automatically defaulted to have no background color. You can add background colors in the sidebar editor by selecting "Color" then "Card (V2)". Click on a color in the swatch to change the color of your card background.

screenshot showing how to change the background color of a card

Rearrange Card Items

To rearrange card items, right click in the card area and select the "Edit Card (V2)" option to open the sidebar menu. From the sidebar menu, select the "Move Items" option. Click on the item you want to move (it will be outlined in a blue dotted line) and then click in the area you want to move it to. For keyboard users, press tab to highlight the item you want to move, press the left or right key to shift it over, and press enter again to drop it into place.

screenshot showing how to rearrange card items

Delete Cards

To remove the entire card, right click in the card area and select the "Edit Card (V2)" option to open the sidebar menu. From the sidebar menu, select the "Delete All" option. Click "Card (V2)" then "Delete All" to delete the entire card.

screenshot showing how to delete an entire card