Skip to main content Skip to footer


Learning Centre

Text/Icon

The Text/Icon component lets you create an icon-based call-to-action with headings and text that you can place above, below, next to or over top of the icon. It also allows you to add hidden buttons over top of the component so that the component itself can act as a button.

The Text/Icon component is only available within the Pods component.

Add a Text/Icon component to a pod

To add a Text/Icon component to a Pod component in Govstack, you need to:

  1. Navigate to the page you'd like to add a Text/Icon component to
  2. Add a Pod component
  3. This will open the 'Pods' slide-out panel
  4. To add a Text/Icon component to the pod, select the 'Add content' button next to the 'Pod items' field
  5. This will open the 'Add content' slide-out panel
  6. From here, select the 'Text/Icon' component

You can continue to add other content components to the Pod and configure the Pod settings so you're happy with the look and layout of the content.

Complete the Text/Icon details

From the 'Text/Icon' slide-out panel you can fill in the following details.

Before you can add an icon to a Text/Icon component, you need to upload the image to the 'Media' area in the Govstack back office. 

SVG files are recommended for Text/Icon components, but the tool will accept most image formats including PNG, JPG, and WEBP.

To add an image to the Text/Icon component, you need to:

  1. Select the '+' icon next to the 'Icon' field 
  2. This will open the 'Media' area in Govstack
  3. Select the folder that contains the icon or image you'd like to add
  4. Choose the icon you'd like to add
  5. Click the 'Select' button

The "Text" part of the Text/Icon component includes a heading, subheading and text.

Add a main heading to the 'Heading' field and, if you'd like, a subheading to the 'subheading' field. Choose the size of your heading(s), from small (S), medium (M) or large (L). When you preview your page, you can see how the size you chose looks.

Add any other text in the 'Text' field.

You can add a button to the Text/Icon component to link to another page on your website, a document or an external web page.

You can choose to make your button visible or hidden. Visible buttons appear as traditional buttons on the Text/Icon component. If you use a hidden button, the whole Text/Icon component will act as a button, allowing users to click anywhere on the component to open the link. To hide a button, turn on the 'Hide button' toggle.

Note that you can have links in the text of the component or a button, but not both. The code interacting will cause your links to behave unpredictably.

Text/Icon component settings

Adjust the Text/Icon component settings to change the look and layout of your pods. To access the settings, select the 'Settings' tab located at the top of the 'Text/Icon' slide-out panel.

Review each of the Text/Icon settings to learn more.

Design and layout

Next to 'Text position', choose where you would like the headings and text to appear in relation to the icon. Text can be placed above or below the image, or to the right or left of the image.

You can add a background color which will appear behind the Text/Icon component in the pod.

To do this, turn on the 'Add background color' toggle. Next, choose which background color you would like to use from the options next to 'Background color'. 

Next to 'Text alignment', select whether you'd like the headings and text in the Text/Icon component to be left-aligned, centered or right-aligned.

We recommend always left-aligning text as this is the most accessible for users with reading comprehension challenges.

Select the icon size: 

  • Small (40px by 40px)
  • Medium (60px by 60px)
  • Large (80px by 80px)
  • Custom size (enter a value to set the height and width of the icon)

Note that using file formats other than SVG may result in blurry icons or distortion during the zoom animation.

Animation

You can add animation to the component by selecting the 'Animate' toggle. Once the 'Animate' toggle is selected, you'll have the option to customize the:

  • Animation style
  • Animation delay (seconds)
  • Animation duration (seconds)

From the 'Animation style' dropdown menu, select the type of animation you'd like to add to the accordion. There are a variety of different animation options in the following categories:

  • Attention Seekers
  • Bouncing Entrances
  • Fading Entrances
  • Flippers
  • Light Speed
  • Rotating Entrances
  • Sliding Entrances
  • Zoom Entrances
  • Specials

We recommend testing out a variety of animation styles to select the one you like the most. 

Please note

Animation styles can cause accessibility issues for some users visiting your website. For example, some users may experience motion sickness when viewing animated elements.

Using the 'Animation delay' slider select the time in seconds that you'd like to delay the animation. 

Please note

Animation delay can cause accessibility issues for some users visiting your website. Certain animation styles and delays can combine to make your animated component invisible to screen readers. Please test your animations to make sure they are accessible.

You can select how long you'd like the animation to last on the component by using the 'Animation duration' slider. Select the number of seconds you'd like the animation to continue on the public website. 

Advanced

In the 'Name' field you can give a unique name to the component. This will make it easier to differentiate between components, both on your page as well as in your clipboard.

In the 'Custom classes' field, you can add any custom CSS classes you may have. Custom CSS classes can be found in the Design node under the 'CSS' tab in the backend of Govstack. 

If you'd like to add more than one custom class, you'll need to leave a space between each class. 

Please note

Depending on your Govstack plan, you may not be able to access the Design node in the backend. If you'd like to be able to add custom CSS and get access to the website design, contact your GHD Digital Account Executive.

We cannot guarantee that future updates to Govstack will not break or negatively impact custom CSS.

Turn on the 'Hide from website' toggle if you'd like to hide this component from the web page.

Preview and publish changes

Once you've added a Text/Icon component to your pod, make sure to preview and publish the page to complete the process.