Juniper Websites
Overview
A card block shows short pieces of information as cards on a page. Each card can have a title, a subtitle, text, an icon, and a background colour or image. For example, you could use cards to highlight your school values, key dates, or awards.
This guide explains how to add a card block to a page, add and manage cards, change how the block looks, and move it on your page.
Add a card block
Follow these steps to add a card block to a page:
- Open the webpage you want to edit.
- Select the content area where you want to add the card block.
- Select the Edit tab.
- Select the Blocks icon.
-
From Website content, select Cards. Cards Block appears:
Add cards
Follow these steps to add each card to your block:
- In Cards Block, select the Cards tab.
-
Select Add New Card. Add Card appears:
-
Enter the details for your card. All fields are optional, so you can, for example, add a card with only text:
- Enter a Title.
- Enter a Subtitle.
- Enter the Text for the card.
- Choose any optional settings, for example an icon, a background image, or colours. See Choose optional card settings.
- Select OK to add the card.
- Repeat these steps for each card. You can add as many cards as you need.
New cards are added to the end of the list.
Choose optional card settings
These settings apply to one card at a time. Expand a section to find out more:
-
Follow these steps to add an icon to a card:
-
In Add Card, find Icon:
- Select one of the icons.
-
Alternatively, choose an icon from Font Awesome and enter its code in the field below the icons. For example:
<i class="fab fa-linkedin-in"></i>
Your website supports Light, Regular, Solid, and Brand icons from Font Awesome v5.7.1. Icons added in later versions don't appear.
To remove an icon, scroll down to Icon Code and delete the code:
-
-
Follow these steps to add a background image to a card:
- In Add Card, scroll down to Image.
-
Select Select image. File Manager appears:
- Select the image you want to use.
To remove an image, select Remove image.
A card can have a background colour or a background image, but not both.
-
Follow these steps to choose the colours for a card:
-
In Add Card, find Background Colour and Foreground Colour:
- Select a Background Colour.
- Select a Foreground Colour. This is the colour of the text and icon.
- Check the Accessibility Colour Contrast Checker. It shows Pass or Fail for large text and small text.
- If your colours fail, choose a different foreground colour.
The contrast checker only checks your colours. It doesn't check text over an image, so choose a text colour that is easy to read on your image.
-
Manage your cards
To open a card block you've already added, open the webpage and double-click the card block in the content area. Cards Block appears.
Expand a section to find out more:
- Follow these steps to edit a card:
- Open Cards Block for your block.
-
From the Cards tab, select the pencil icon ( ) next to the card you want to change:
- Update the card details.
- Select OK.
- Select OK to close Cards Block.
- Follow these steps to delete a card:
- Open Cards Block for your block.
-
From the Cards tab, select the bin icon ( ) next to the card you want to remove:
- Select OK to close Cards Block.
- Follow these steps to change the order of your cards:
- Open Cards Block for your block.
-
From the Cards tab, drag the handle to the left of a card up or down to move it:
- Select OK to close Cards Block.
-
Follow these steps to sort your cards by title:
- Open Cards Block for your block.
-
From the Cards tab, select a Sort Order:
- Select Title A-Z to sort from A to Z.
- Select Title Z-A to sort from Z to A.
- Select Default to return to the order you added the cards.
- Select OK to close Cards Block.
If you add, move, or rename a card after sorting, the Sort Order returns to Default.
Change how your cards look
These settings apply to all the cards in the block. Expand a section to find out more:
- Follow these steps to add a title above your card block:
- Open Cards Block for your block.
- Select the General tab.
-
Check Include Title, then enter a title for the block:
- Follow these steps to choose the shape, corners, and angle of your cards:
- Open Cards Block for your block.
- Select the Style tab.
-
Choose an option for each group of settings:
Use this table to help you:
Group Options Shape Square, Landscape, or Portrait Corners Square or Rounded Angle Straight or Slanted
- Follow these steps to choose a layout for your card block:
- Open Cards Block for your block.
- Select the Layout tab.
-
Select a layout:
Use this table to help you:
Layout What it does 1 Across, 2 Across, 3 Across, or 4 Across Shows your cards in a grid, with that number of cards in each row. Single Swiper Shows one card at a time. Visitors use the arrows to move between cards. Multi-Swiper (2 Across), Multi-Swiper (3 Across), or Multi-Swiper (4 Across) Shows that number of cards at a time. Visitors use the arrows to move between cards.
- Cards in a 1 Across layout don't fill the full width of the page. Follow these steps to choose where the card sits:
- Open Cards Block for your block.
- Select the Layout tab.
- Select the cog icon ( ) on the 1 Across option.
- From Align, select Left, Center, or Right.
- Follow these steps to set how long each card appears in a swiper layout:
- Open Cards Block for your block.
- Select the Layout tab.
- Select the cog icon ( ) on a Single Swiper or Multi-Swiper option.
- Enter the Slide Duration in seconds.
- From Transition, select Fade, Fade Out, Scroll Horizontal, or None.
Save your changes
Follow these steps after you add or change your cards:
- In Cards Block, select OK.
-
Check the card block in the content area:
- Select Save to save your changes.
Move a card block
Follow these steps to move a card block to a different place on your page:
- Open the webpage with the card block you want to move.
- Drag the card block to its new position in the content area.
- Select Save.
Tips and best practices
- Keep the text on each card short, so visitors can read it quickly.
- Add a similar amount of text to each card, so your cards look balanced.
- Choose a foreground colour that stands out clearly from the background colour or image. Always check the contrast checker results.
- If you use a background image, we recommend a plain one, so your text is easy to read.
- Choose a style that suits every card in the block, because the shape, corners, and angle apply to all cards.
Next steps
Check how your cards look on different devices. See Juniper Websites: How do I see what my website looks like on different devices?
Related information
- Juniper Websites: How do I add a Block?
- Juniper Websites: Embedding a Multi-Image Block
- Juniper Websites: Embedding the Document Block
- Juniper Websites: How do I make the colours on my website accessible?
Updated