Every LifterLMS Certificate Merge Code and How to Use It
A complete reference to LifterLMS certificate merge codes: what each one inserts, where the value comes from, when it is filled in, how to format…
Read articleSince version 6.0, the LifterLMS certificate builder uses the WordPress block editor. You design a certificate the way you build a page, with headings, columns, images and spacers, on a canvas that matches the paper size you choose. That makes good-looking certificates possible without custom HTML, as long as you know which settings control the page and which blocks behave well when printed.
This guide focuses on design. It covers the certificate settings panel, the default layout and how to adapt it, backgrounds, fonts, logos and signatures, and two developer additions: custom paper sizes and custom fonts. It assumes you know how certificates are awarded; if not, read how to create certificates in LifterLMS first. Labels were checked against LifterLMS 10.3.
The default layout is a good starting point because it is built from ordinary blocks you can edit, move or delete. If you experiment too far, the editor offers Reset template, which replaces the content with the original layout after a confirmation. It cannot be undone, so use it only on a template you are happy to start again.
The block editor builder needs WordPress 5.8 or later. Templates created with the old builder are labelled Legacy and keep working, but they do not get the features described here. The LifterLMS certificate documentation describes the classic editor workaround if your site has the block editor turned off.
Open the editor's settings sidebar and find the certificate settings. These decide the shape of the canvas, so set them before you design anything.
| Setting | Options | Advice |
|---|---|---|
| Title | Free text | "Used as the title for certificates generated from this template". Shown by the Certificate Title block and in the student's certificate list |
| Size | A3, A4, A5, Letter, Legal, Ledger, User defined | Match the paper your students print on: A4 for most of the world, Letter for North America |
| Orientation | Portrait, Landscape | Landscape is the traditional certificate shape and gives long names room |
| Inner Margins | Top, Right, Bottom, Left | Keeps text away from the edge and from the border of your background image |
| Background Color | Colour picker | Use a light colour or white; dark backgrounds use a lot of ink |
| Next Sequential ID | Number | The number the next certificate receives for the {sequential_id} merge code |
The default size for new templates, and the dimensions behind User defined, are set under LifterLMS > Settings > Engagements: Default Size, then Width, Height and Unit (inches or millimetres) under User Defined Certificate Size. The same screen has the Legacy Certificate Background Image Settings, which only affect old classic-editor certificates.
If your audience is international, there is no size that prints perfectly on both A4 and Letter. Pick one, keep generous margins, and the certificate will scale acceptably on the other.
The template's featured image panel is labelled Background Image. The image fills the certificate behind your blocks, which is how you add a decorative border, a watermark or a branded frame.
Browsers often skip background images when printing unless the student ticks "Background graphics" in the print dialog. Mention that near the print button, for example in your certificate emails, or use a border built from blocks instead of an image if printing is essential.
The large heading at the top is the Certificate Title block. It displays the template's Title and has a font choice of its own, in addition to your theme's fonts:
These certificate fonts are offered on the Certificate Title block only. Other blocks use the fonts your theme provides. LifterLMS loads the four decorative fonts from files bundled with the plugin rather than from Google's servers by default, which avoids sending visitor data to a third party.
Restraint looks more professional: one decorative font for the title, and one clean font for everything else. Script fonts are hard to read in long text, so do not use them for the student's name if names on your site can be long or contain uncommon characters.
A certificate is a fixed-size page, not a responsive web page, so some blocks behave better than others.
For personal details, use merge codes and the [llms-user] shortcode. The default layout shows the student's display name with [llms-user display_name] and the award date with {earned_date}. Insert other codes with the Merge Codes button in the text toolbar. Our reference to LifterLMS certificate merge codes explains each one, including which date code to use.
Use the editor's preview to check the layout at its real size. Then award a test certificate to a student account. LifterLMS lets you award a certificate manually: choose the template and the student, and the award is created as a draft that you review and then publish. Publishing it awards it, with the same notifications as an automatic award.
Awarded certificates are copies. Each one is its own post that you can open and edit in the same block editor, for example to correct a misspelled name for one student. When you change the template later, existing certificates keep the old design until you sync them from the template's Sync Awarded certificates panel. Syncing replaces each awarded certificate's content with the current template, so any one-off edits are overwritten.
Students view certificates from their dashboard and can Print, Download or Enable sharing. The core download is an HTML file; real PDF files need the LifterLMS PDFs add-on. Our guide to fixing LifterLMS certificate problems covers printing and download issues in detail.
Two filters let a developer extend the builder: llms_certificate_sizes adds paper sizes to the Size list, and llms_certificate_fonts adds fonts to the Certificate Title block.
<?php
/**
* Plugin Name: LLMSX Certificate Design Options
*/
// Add a square size for social sharing and a US diploma size.
add_filter( 'llms_certificate_sizes', function ( $sizes ) {
$sizes['LLMSX_SQUARE'] = array(
'name' => __( 'Square (200 mm)', 'llmsx' ),
'width' => 200,
'height' => 200,
'unit' => 'mm',
);
$sizes['LLMSX_DIPLOMA'] = array(
'name' => __( 'Diploma (11 x 14 in)', 'llmsx' ),
'width' => 11,
'height' => 14,
'unit' => 'in',
);
return $sizes;
} );
// Add a self-hosted brand font to the Certificate Title block.
add_filter( 'llms_certificate_fonts', function ( $fonts ) {
$fonts['llmsx-brand-serif'] = array(
'name' => 'Brand Serif',
'href' => plugins_url( 'fonts/brand-serif.css', __FILE__ ),
'fontFamily' => '"Brand Serif", Georgia, serif',
);
return $fonts;
} );
The href points to a stylesheet with the @font-face rules for your font files, kept inside your plugin. Check the font's licence allows embedding. Sizes use the same structure as the built-in ones: a width, a height and a unit of mm or in.
LifterLMS builds certificate templates with the block editor, and its size, margin and print features are part of that editor. Page builder layouts are designed for responsive web pages, not fixed-size printing, so stick with the block editor for certificates.
Scan or photograph the signature, remove the background so it is a transparent PNG, and add it with an Image block above the signature line in the bottom columns.
The browser is skipping background graphics. Enable "Background graphics" in the print dialog's settings.
Yes. Create one template per course or programme, and point each certificate engagement at the right template.
Choose your paper size and orientation, create a background image at the matching ratio, set margins inside the border, then build the text with a single decorative title font and clean body text. Award a test certificate, print it on real paper, and only then roll it out across courses.
If your certificates need features the builder does not offer, such as automatic PDF delivery, verification pages, credit hours or co-branded templates for corporate clients, our LifterLMS customization service can add them without touching core. Send us a mock-up and we will tell you what is possible with settings alone and what needs code.
A complete reference to LifterLMS certificate merge codes: what each one inserts, where the value comes from, when it is filled in, how to format…
Read article
How to add audio to LifterLMS lessons with the Audio Embed URL field or the Audio block, keep paid audio files private, and deliver a course as a…
Read article
Translate LifterLMS into your language and change wording such as "Mark Complete" or "My Courses" safely: language packs, the update-safe folder…
Read articleSkip the trial and error. Get specialist LifterLMS help and ship faster.