Create a Certificate

Create a Certificate

Creating a certificate is the first step in the LearnDash certificate process. Once created, you can then assign your certificates to a course or a quiz.
This article will walk you through the certificate creation process.
NOTE
An easier way to create certificates is using our Certificate Builder add-on. You can easily build certificates using the Gutenberg Block Builder using the add-on.
Table of Contents [show]1 Add a New Certificate2 Title3 Featured Image3.1 How to Create an Image4 Content4.1 Certificate Custom Styles (CSS)4.2 Vertical Spacing4.3 Horizontal Spacing (Indentation)4.4 Font Size4.5 Font Family4.6 Color5 Certificate Options5.1 PDF Page Size5.2 PDF Page Orientation6 Certificate File Format7 Previewing Certificates8 Video Tutorial8.1 Was this article helpful to you?
Add a New Certificate

Navigate to LEARNDASH LMS > CERTIFICATES
Click the Add New button

You』ll be directed to a new screen where you can start creating your certificate. Here』s an overview of each type of information that can be added to your certificate.

Title
The certificate title is only for internal use. Your users will not see this title, but it will be the name that appears in dropdown menus when you go to apply it to a course or quiz. Be sure to name it something you』ll recognize.

Featured Image
Adding a featured image is the way in which you apply a design, or style, to your certificate.

IMPORTANT: You must use .jpg images, no more than 1MB in size. This also keeps your loading time to a minimum.
The size of your image should match your page size & orientation (see below). If you』re using an 11″ x 8.5″ US Letter size in landscape orientation, your image should match these dimensions. If you want your certificates to look great when printed, please also use 300 dpi.
You may include text as part of your image. There are no restrictions to what you include in the image, but keep in mind, it will be shown on all certificates to all users. Text contained within an image is not dynamic and cannot be customized for each user.

To add a featured image:

Click the 「Set featured image」 link
Choose an image from your Media Library, or upload a new one
Click the Set featured image button

KNOWN ISSUES
Some image optimization plugins are known to cause issues with certificate images, especially the SG Optimizer plugin from SiteGround. If your images are distorted, or contain large areas of all black, please disable image optimization for the images you』re using for certificates.
How to Create an Image
You can use any image creation or editing program you』d like, hire a designer or use images from a graphics library (please check the license to make sure you have permission). Here are a few suggestions:

Canva allows you to use pre-made templates for free, and add some customization of your own. Small upgrades are available, and very affordable.
Envato Elements is a premium graphics library with tons of pre-made certificate templates.
Creative Market is another premium marketplace where you can find certificate templates, as well as graphics to make your own.
Adobe』s Creative Cloud is also an option for more design-oriented users, or anyone already familiar with their design software (Photoshop, Illustrator, InDesign, etc.). A premium subscription is required.

Content
Your certificate content will mostly consist of dynamic fields that are generated for each individual user who is awarded a certificate. For example:

User』s Name
Course Title
Date of Completion
…etc.

These types of dynamic fields are inserted via shortcodes. We have an entire article dedicated to certificate shortcodes here →
When adding your certificate content, you』ll need to use some HTML & CSS to set up the overall layout, spacing, sizing, etc. We』ll walk you through some common layouts below, and how to achieve various designs.
Certificate Custom Styles (CSS)
If you know your way around CSS codes and styles, you can add your own custom CSS stylesheet to apply globally to all of your certificates. You can find it here:

Navigate to LEARNDASH LMS > CERTIFICATES
Click on the Settings tab
Scroll down to the 「Custom Styles (CSS)」 metabox

By adding your own custom CSS styles, you eliminate the need to constantly re-type and re-style all of the elements that you add to your certificates. You can easily assign classes and IDs to these elements (e.g. paragraphs, shapes, and headings) and then add the styles that will apply globally to all your certificates. This will help you stay on brand.
Vertical Spacing
You might want to insert the course title at the top of a certificate, the user』s name in the middle, maybe at a completion date at the bottom, etc. One of the best ways to control vertical spacing, and move content up or down on your certificate, is to use the line-height property.
Wherever you need to insert some blank vertical space, you can use the following code:

This would add 20 pixels of vertical space. You can adjust the 20px to another value. Since our final certificate uses inches, not pixels, you』ll need to play around with this value to achieve your desired result. (see below for previewing certificates)
You can insert as many of these spacers as you need throughout the certificate.
Horizontal Spacing (Indentation)
There are a few ways to go about horizontal spacing.
If you need to center your text in the middle of the certificate, you can use text-align:center;. Here』s an example of the user』s first name, centered horizontally:

[usermeta field="first_name"]

By default, all text will be aligned to the left edge of the certificate (right edge for RTL languages). If you need to indent something, you can use the text-indent property. Here』s an example of the course completion date being pushed vertically towards the bottom of the page, then indented to move it to the far-right corner.

[courseinfo show="completed_on" format="F j, Y"]

You』ll need to adjust the 150px and 200px values to match up with your certificate image.
Font Size
You can also adjust the font size of any text. Let』s say you wanted your user』s first & last name to be quite large (30px), then a small vertical space (10px), and then the course title not quite as large as the name (20px), you could do this:

[usermeta field="first_name"] [usermeta field="last_name"]

[courseinfo show="course_title"]

Font Family
Different computers come pre-installed with different fonts. Some users will have a font installed, and others might not. So there isn』t a ton of flexibility with using custom fonts in certificate creation. However, you can switch between serif and sans-serif fonts, as both should work for most of your users. Here』s an example using a generic serif font:

Color
You can adjust the color of any text on your certificate. If your image has a dark background, you can use the color property to make your text white.

You can combine multiple properties at the same time. If you wanted to indent the user』s first & last name, adjust the font size, and change the color to red, it would look like this:

[usermeta field="first_name"] [usermeta field="last_name"]

Certificate Options
There are a few additional options you can set for your certificate.
PDF Page Size
Choose between the following options:

US Letter (default): 8.5″ x 11″
A4: 8.3″ x 11.7″

PDF Page Orientation
Choose between the following options:

Landscape (default): width is longer than height
Portrait: height is longer than width

Certificate File Format
When a user earns a certificate, either by completing a course or passing the certificate threshold for a quiz, they』ll be able to download it in PDF format. All LearnDash certificates are provided as a .pdf file.
When a user clicks a button to get their certificate, some web browsers will open the PDF file in the browser, and others might download the file to the user』s computer. Whatever the default behavior for that user』s browser is, that』s how LearnDash certificates will behave as well.
Previewing Certificates
Before applying your certificate to a course or quiz, you』ll want to preview it so you can see how it looks. You can create a quick test quiz that is only used for previewing your certificate.

Create your certificate, and make sure you Publish it
Then, navigate to LEARNDASH LMS > QUIZZES
Click Add New to create a new quiz
Give the quiz a title
On the Settings tab, next to Quiz Certificate, choose the certificate that you want to preview
Add a single choice question to the quiz, with an obvious correct answer
Publish the quiz
Open the quiz in a new tab
Choose the correct answer, and click Finish Quiz
Click the Print Your Certificate button

Alternatively, you could create a test course with only one lesson. Then you』d mark that lesson complete, and you』d be able to view your certificate that way.
This will open your certificate in a new tab so you can preview it. Keep this tab open, and each time you make a change to your certificate in the backend, simply refresh this page and the updated version of your certificate will be loaded.
NOTE
Don』t forget to delete this quiz (or course) when you』re finished testing your certificate.
Video Tutorial
In this webinar, we demonstrate how to create a certificate from beginning to end. Includes best practice advice and helpful tips for creating dynamic content.

Was this article helpful to you?

Yes

No

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注