Action for Children logo

Hidden first row for code blocks

Put any code blocks together at the top of the page in a hidden first row (unless a particular code block has to be lower down the page). To hide this first row:

  • Load from the library the saved code block 'Row 1 - hide'
  • (Do not unlink from library)

Curved hero image

To add a curved hero image at the top of the page:

  • Load from the library two code blocks called
    • 'Hero image'
    • 'Hero image - set image URL'
  • Unlink from library only the second block 'Hero image - set image URL'
  • In the code for 'Hero image - set image URL', change the image URL to the one you want

Yellow backgrounds

To set a yellow background for a particular section of the page (e.g. the form):

  • The part you want to make yellow should be together in one row and a column within that row
  • Load from the library one of the code blocks called 'Row X, column Y - yellow background' -- depending on which row and column it is
  • (Do not unlink from library)

Top tips

  1. There are lots of examples and instructions on this page, page 2 of this action, and the example two-column action
  2. Some examples and instructions are in the first row which is hidden unless you're looking at this page in the editor
  3. Each page section (with rounded corners and spacing around it) is a row -- mostly you can just use a normal one-column or two-column row, it's only for a wide single column below two columns that it's different (see the example two-column action for details)
  4. Saved blocks are your friends (text blocks, code blocks, etc) -- these all live in the '2021' folders in the library (if you're creating new saved blocks, move them there too -- you have to go to Components in Engaging Networks to move them to a different folder). 
  5. When you use a saved block, only unlink from the library if you are going to change the code/content inside the block (otherwise, leave it link to the saved version -- that way if we ever need to update the saved version, it will update every page that uses it at once).

Helper classes

There are some classes you can add to various elements (e.g. text blocks, images, paragraphs, form labels) to change how they look on an individual basis.

To add one to a whole block (e.g. a Text block, Form block or an Image block), edit that block, then click the paint palette icon Paint palette icon, then add custom class(es).  You can also use them in HTML code e.g. <p class="text-small zero-space-above">...</p>

If you're adding more than one class, these must be separated by spaces (not commas).

Vertical spacing

  • zero-space-above
    or space-above or space-above-more
    or reduce-space-above or reduce-space-above-more
  • zero-space-below
    or space-below or space-below-more
    or reduce-space-below or reduce-space-below-more

Text size

  • text-medium  22px, looks like this
  • text-medium-small  18px, looks like this
  • text-small  16px, looks like this

We don't usually use this but it's here just in case (h1 extra large) To use this, edit the code to be <h1 class="h1-extra-large">...</h1>

Tell Boris he must make protecting vulnerable children a priority (h1).

Tell Boris he must make protecting vulnerable children a priority (h2).

Tell Boris he must make protecting vulnerable children a priority (h3).

Larger introduction text if you want it. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

To add larger introduction text:

  • Load from the library the text block called 'Introduction text'
  • Unlink from library
  • Update the text

Paragraph.  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

  1. Excepteur sint occaecat cupidatat
  2. non proident
  3. sunt in culpa qui officia deserunt mollit anim id est laborum
  • dolor sit amet
  • consectetur adipiscing elit
  • sed do eiusmod tempor

Show more text

You can have more than one of these on a page. To add:

  • Load from the library the text block called 'Show more text'
  • Unlink from library
  • Update the button text and text
  • Because of a bug in the Engaging Networks text editor, when you have finished editing your text, if you can see the expanded text, then click 'Source' to edit the code and in the <details> tag remove open="" and then save.
Show the full petition text

There is a bug in the Engaging Networks text editor.  When you have finished editing your text, if you can see the expanded text here, click 'Source' to edit the code and in the <details> tag remove open="" and then save.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

Image (and optional caption)

There are two ways you can insert an image, either is fine:

  • inside a text block (from the toolbar when editing a text block)
    ​or
  • you can use Engaging Networks' built-in Image block

Essential:  Whichever way you use, when you are in the pop-up window with image options, you must change the units from px (pixels) to % (width should then be 100%, height auto). You shouldn't need to change any of the other options about border, spacing, etc.

Vertical spacing:  By default, the spacing above and below images is quite large.  If you want to reduce it, you can add the classes to your image -- see the Helper classes section above.
Edit your image (while editing in a text block double-click the image -- or for an image block click Edit on the block) and then in the pop-up window add classes, separated by spaces (not commas).

Caption:  To add an image caption (optional):

  • Load from the library the text block called 'Image caption'.  Image captions can only be used directly after an image (in the same text block or the following text block).
  • Unlink from library
  • Update the text

A young boy sitting at a table

Image caption - Lorem ipsum dolor sit amet, consectetur adipiscing elit

A boy looking in a kitchen cupboard

Image caption - Lorem ipsum dolor sit amet, consectetur adipiscing elit

Pull-out quote

To add:

  • Load from the library the text block called 'Pull-out quote'
  • Unlink from library
  • Update the text

Lorem ipsum dolor sit amet, consectetur adipiscing elit

Attribution

YouTube video

To add:

  • Load from the library one of the text blocks called 'YouTube video...', depending on the aspect ratio of your video (most YouTube videos are 16:9)
  • Unlink from library
  • Edit the HTML code ('Source' button in the text block editor) -- in the <iframe> you need to replace the video id (e.g. sPKmE9mpiAA in the 16:9 example) with the YouTube ID for your video (here's how to find the ID).

Calls to action

To add:

  • Load from the library the text block called 'Call to action - large' or 'Call to action - small'
  • Unlink from library
  • Update the text
  • Update the link
Emergency coronavirus appeal

We're supporting families to cover the cost of basics

Donate

Small call to action summary

Small call to action - action text

Accordion

To add:

  • Load from the library the text block called 'Accordion' (make sure to use the one in the 2021 folder, not the existing one)
  • Unlink from library
  • Update the text
  • Delete any of the accordion items you don't need

Accordion heading h2

Accordion item title

Heading
Bit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Accordion item title

Heading
Bit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Accordion item title

Heading
Bit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Accordion item title

Heading
Bit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Accordion item title

Heading
Bit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Accordion item title

Heading
Bit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Forms

Validators

When using the following form fields, make sure to set the Validator:

  • Postcode
  • Email
  • Phone number
  • Date (YYYY-MM-DD)

(Validators only work when Mandatory is ticked - apart from Phone number where you also have an optional validator.)

Petition totaliser

  • Colours are set automatically -- you don't need to change anything
  • To set the text, edit the widget then go to Copy and use e.g.
    Join the {widget_data~count} supporters who are fighting for safe and happy childhoods for all children.
    or
    {widget_data~count} people have already
  • If you want to show text only (not the progress bar), add the code block 'Petition totaliser - text only' to the page (usually in the first row)

Skip to form button on mobile

By default on mobiles, if there is a form on the page and the user cannot see it on-screen at present (because it's below or above), the user will see a button at the bottom of the screen to skip straight to the actual form (or to the form steps if this is being used).

You can change some of the settings if you want to -- what the text on the button should be, where the user should scroll to (if you don't want it to be the form steps or the first form block), or you can switch off this skip to form button completely on the page.  To do this:

  • Load from the library the code block 'Skip to form button on mobile - settings'
  • Unlink it from the library
  • Update the settings

If you just want to make the button appear on all screen sizes (not just mobile), add this saved code block: Skip to form button - make it show for all users, regardless of screen size

Form steps

If you are using form steps, put these next to / near to your first form block, to ensure the skip to form button on mobiles works properly.

To add:

  • Load from the library one of the text blocks 'Form steps X of Y' - e.g. 'Form steps 1 of 2'
  • Unlink from library
  • Update the text
  1. Your details
  2. Email your MP

To add some small text, insert a text block, load from the library 'Small text', then unlink it from the library.

Stay in touch

We would love to send you regular updates about our work, including how you can support children by campaigning, volunteering and fundraising.

Full-screen rows

See below for an example full-screen row. 

NB the code blocks there only need to be included once on the page, and ideally would be at the top of the page.

How to add a full-screen row

  1. Insert an Advanced Row (Add row > Custom layout)
  2. Tick 'Custom class name' for the row (not the column) and then add this class name: full-screen
  3. Remove column 2 (full-screen rows work with single columns)

How to set background images

  1. Insert the saved code block 'Full-screen rows - Define background images' at the top of the page -- this is where we can define multiple background images that you can then use on rows
  2. Click Unlink from library, then Save to library with a new name
  3. Edit the code block - you'll see there are various image slots (if you need more, add a second version of this code block on the page). For each image you want to use:
    1. Upload mobile and desktop versions of the image to Images & Files -- see the beginning of the code block for instructions on what dimensions and file size/type to use
    2. Replace XXXXXXX IMAGE NAME with a reference name that makes sense to you, it's not used anywhere else
    3. In both instances of .background-image-xxxxxxxxxx replace xxxxxxxxxx with a unique name, using only lowercase letters, numbers and hyphens (-), no spaces or capital letters or other punctuation
    4. Replace https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-mobile.jpg with the mobile image URL
    5. Replace https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-desktop.jpg with the desktop image URL
  4. To set a background image on a full-screen row, edit the Advanced Row then in the Custom class name box for the row (not the column), add a space after full-screen then whatever you set earlier to replace background-image-xxxxxxxxxx (note: without the dot) -- so what's in this box should now be e.g. full-screen background-image-girl-fridge

How to add content

The easiest thing is to:

  1. Insert the saved text block 'Full-screen row - Example content' -- this will give you a heading, text, expandable boxes and a next button
  2. Click Unlink from library, then (if you want) Save to library with a new name

How to manually add an expandable box

If you didn't insert the saved text block described above, you can insert an expandable box manually:

  1. In a full-screen row, edit your text block
  2. Click the Source button to see the HTML code
  3. Paste this HTML code after all the other code you see:
    <details>
    <summary>
    Here is a title
    </summary
    <p>Here is some text</p>
    <p>If you are editing this expandable box, make sure to leave it looking closed in the text block editor - otherwise it will be open when a supporter comes to the page.</p>
    </details>
  4. Hit the save button to take you out of the code view
  5. Edit the content as needed

How to add 'next' buttons

If you didn't insert the saved text block described above, you can insert a 'next' button manually:

  1. In a full-screen row, edit your text block
  2. Click the Source button to see the HTML code
  3. Paste this HTML code after all the other code you see:
    <div class="button">
    Next
    </div>
  4. Hit the save button to take you out of the code view
  5. Edit the button name to whatever you like

How to add floating take action button

See instructions in the section above titled Skip to form button on mobile

Title goes here

Here's some short text. NB if you're editing expandable boxes below, make sure to close them in the text block editor - otherwise they'll start open on the page.

Here's the title of an expandable box

If you’re in care, people might think that you don’t have a family, or that you don’t want to be reminded of your family. But that’s generally not true - there are lots of reasons why you can be in care, and most children still have family out there. Photos can be a really important part of remembering who you are and staying connected to important people in your life.

Many children in care are split up from their brothers and sisters – it can be for years, or even your whole time in care. This is because there aren’t enough homes that can take more than one child at a time. When you’re separated from the people you love, who you grew up with, photos are a lifeline.

37% of children are separated from their siblings in their first placement.

“Here's a quote title of an expandable box”

“I was only allowed photos in my bedroom. A lot of them were online, so I had to get them from Facebook, print them off put them in frames. And I had some old photos from when I was a baby.  Everywhere I lived I stuck them on the wall with bluetack, the photos that I had. It made me feel a bit more at home – like ‘I’ve got my photos, this is my space now – I've made it my home. So even now, I put photos around the house of me, my child, my family, my friends – it makes it more homely.

In my second home, I wasn't able to have pictures on the wall. That might sound silly to someone, but for me that at the time I wanted that. I wanted to have my own little pictures on the wall so I could just feel a bit at home, you know.”

Amelia*

Next
Registered address,
3 The Boulevard, Ascot Road, Watford, WD18 8AG.
Action for Children is a charity (1097940/SC038092) and a company limited by guarantee (England and Wales No. 04764232). © Action for Children 2021
  • Privacy policy
  • Cookie policy
  • Terms and conditions