Skip to main content Skip to footer


Learning Centre

Embed Code Block

With the Embed Code Block content component, you can easily integrate third-party widgets on a page of your website. For example, you may want to embed a Google map, online form, iFrame or other third-party widget on your page. Learn how to add an Embed Code Block component and review the component settings.

Add an embed code block

To add an Embed Code Block component to a content page, you need to:

  1. Navigate to the page you'd like to add the embed code block to
  2. Select the 'Add content' button under the 'Main content' area of the page 'Content' tab
  3. This will open the 'Add content' slide-out panel
  4. From here, select the 'Embed Code Block'
  5. This will open the 'Embed Code' slide-out panel
  6. In the 'Code' field, add the embed code (this can be in JavaScript or HTML)
  7. Select the 'Create' button to complete the process

Please note

You may need to work with your IT department or third-party provider to get access to the embed code. Embed codes can be entered using JavaScript or HTML. 

Embed code block settings

You can adjust the look and layout of the embed code block through the embed code block settings tab. To access the settings, select the 'Settings' tab located at the top of the 'Embed code' slide-out panel.

Review each of the Embed Code Block component settings.

In the 'Name' field you can give a unique name to the Embed Code Block component. This will make it easier to differentiate between embed code blocks if you have multiple on the same page. 

When working in the back office you'll see a list of all components on a page and the names will help differentiate between similar components.

You can customize the content colours of the embed code block using the colours that are part of your website design. Depending on your website design, you can add a coloured background behind the embed code block to create a hot spot on the page. 

Colour options

The colour options are based on the design of your website. You may be able to change the design colours depending on your Govstack plan. To get access to the website design features, speak with your GHD Digital Account Executive.

If you'd like, you can add an image to the background of an embed code block. To do this, you need to:

  1. Select the '+' icon next to the 'Background image' field
  2. This will open the 'Media' folder
  3. From here, choose the folder that contains the image you'd like to add
  4. Select the image you'd like to insert
  5. Press the 'Select' button 

Please note

Adding an image behind text can cause colour contrast issues for users with low vision or colour blindness. You should only add an image behind text if it meets the colour contrast ratio requirements associated with the accessibility legislation in your region. 

Background image options

You can also set a few options for a background image, including the placement of the image, size of the image and whether or not the image repeats. We recommend testing out the different options until you find the one you like the best. 

This setting only applies if you are using a page with a 'Full' page layout. Typically full page layouts are reserved for the home page of your website or any landing pages you've created.

You can add animation to the embed code block 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)

Animation style

From the 'Animation style' dropdown menu, select the type of animation you'd like to add to the embed code block. 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 on your website.

Animation delay

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

Animation duration

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

You can create an anchor link that will link a user to this specific part of the content page. If you'd like to create an anchor link to the embed code block in the future, you can add a unique name in the 'Anchor name' field. 

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 back office of Govstack. 

Please note

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

You can add additional styles to the embed code block, including:

  • Spacing
  • Visibility
  • Design

Spacing

You can remove the spacing around the embed code block by selecting one of the following options:

  • Remove spacing
  • Remove spacing top only
  • Remove spacing bottom only

Visibility

You can customize the visibility of the embed code block. Select one of the following options:

  • Hide on all screens
  • Hide on extra small screens
  • Hide on small screens
  • Hide on medium screens
  • Hide on large screens
  • Hide on extra large screens

Design

Select one of the following options if you'd like to customize the design of the embed code block:

  • Show shadows - this will add a shadow effect to the embed code block
  • Sticky - the embed code block will stay on the screen even as users scroll down the page

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

Preview and publish the page

Once you've added the embed code block to your page, make sure to preview and publish the page to complete the process.