Skip to main content

Service Call to Action

BlockServiceCta Services 5 options

Closing call-to-action panel with heading and one or two buttons, coloured per service group.

Published · by Christopher Alberto

Open full screen

At a glance

Component
BlockServiceCta
Category
Services
Used as
Page block — “Block: Call to Action”
Options
5 editable fields
Built with
PHP, Twig, SCSS
Platform
WordPress · Flynt theme · Timber/Twig · ACF Pro

About this component

The closing panel on service pages and the archive: a heading with a primary (and optional secondary) button, tinted to match the service group.

Options

Editors add this as Block: Call to Action in a page's components. Every field it exposes:

Option Field Type Details
Heading heading text
Button label ctaLabel text
Button link ctaUrl text
Second button label secondaryLabel text
Second button link secondaryUrl text

Under the hood

Components/BlockServiceCta/

  • _style.scss Styles (SCSS) 35 lines
  • functions.php Fields & data (PHP) 20 lines
  • index.twig Markup (Twig) 11 lines