Adding custom code to a code block

Recruitment Marketing Public

When building a page in Recruitment Marketing, sometimes you need to add customised code, for example: a Twitter timeline, a Facebook feed, or an embedded video with a customised poster image. This can be achieved by using a Code Block.

Important note: It is advisable to use code blocks only when necessary. Whenever possible, it is better to use a native Recruitment Marketing content block instead of a code block. If you must use a code block, try to keep it simple. The Recruitment Marketing system updates frequently, it is recommended to regularly check that the block is working properly and has not been unintentionally affected by a system upgrade.

Creating a code block

  1. In the Page Editor, click the Add Row icon to add a row of the relevant dimensions. Alternatively, if a Code Block already exists, navigate to it and click the Edit Block button.
  2. Within that row, click the Add Block button.
  3. Select a Code Block from the block library. This block will display with the message "Code block unavailable in editing mode" when in the Page Editor.
  4. Click the Edit Block button
  5. Enter the relevant code.

    creating a code block
    Note: Your page will fail to work if you use incorrect code, such as a script tag without a closing tag or a destructive JavaScript file. If you find yourself in this position, contact PageUp and your page will be reverted to a working state.
  6. Click the Save button.
  7. Click the View button then View Changes to preview your new block.



Article is closed for comments.