The Instagram API does not report verified status, so adding a checkmark needs custom JavaScript. The steps to do it.
Would you like to show a verified checkmark next to your username in the header of your Instagram feed?
In this guide, we’ll add the checkmark to one feed with a small piece of JavaScript and style it with CSS. We’ll use WPCode for both. We’ll also look at what to check if the checkmark doesn’t show.
Before you get started, make sure Instagram Feed is installed and activated on your site, with a feed that shows a header. You’ll also need WPCode installed. To learn how it works with the plugin, see our WPCode integration guide.
Here is what we will cover.
Adding the Verified Checkmark
The Instagram API does not offer any information about whether a feed is from a verified account or not. So you need to add the checkmark yourself with some custom JavaScript and a little configuration of the feed.
First, we’ll give the feed a class so the code only changes that feed. Then we’ll add the code in WPCode.
- In your WordPress dashboard, go to Instagram Feed » All Feeds and open your feed.
- Then, click Embed in the feed editor and copy your feed’s shortcode.
- Next, paste the shortcode into your page or post. Then add
class="verified"before the closing bracket, like this.
[instagram-feed feed=1 class="verified"]
Keep the feed number the shortcode gave you, since it tells the plugin which feed to show. The class setting adds your class name to the feed’s main container, so the code below can find this feed’s header.
Now we’ll add the code.
- In your WordPress dashboard, go to Code Snippets » Add Snippet and create a new custom snippet.

- Then, set the code type to JavaScript Snippet and the location to Site Wide Footer.

- Next, paste in the code below.

- Finally, turn the snippet on and save it.

Here is the code. It adds the checkmark after the username in the header.
var sbi_custom_js = function() {
var $ = jQuery;
$('.verified .sb_instagram_header h3').each(function() {
var $heading = $(this);
if (!$heading.find('.sb_verified').length) {
$heading.append('<span class="sb_verified"><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="badge-check" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="svg-inline--fa fa-badge-check fa-w-16"><path fill="currentColor" d="M512 256c0-37.7-23.7-69.9-57.1-82.4 14.7-32.4 8.8-71.9-17.9-98.6-26.7-26.7-66.2-32.6-98.6-17.9C325.9 23.7 293.7 0 256 0s-69.9 23.7-82.4 57.1c-32.4-14.7-72-8.8-98.6 17.9-26.7 26.7-32.6 66.2-17.9 98.6C23.7 186.1 0 218.3 0 256s23.7 69.9 57.1 82.4c-14.7 32.4-8.8 72 17.9 98.6 26.6 26.6 66.1 32.7 98.6 17.9 12.5 33.3 44.7 57.1 82.4 57.1s69.9-23.7 82.4-57.1c32.6 14.8 72 8.7 98.6-17.9 26.7-26.7 32.6-66.2 17.9-98.6 33.4-12.5 57.1-44.7 57.1-82.4zm-144.8-44.25L236.16 341.74c-4.31 4.28-11.28 4.25-15.55-.06l-75.72-76.33c-4.28-4.31-4.25-11.28.06-15.56l26.03-25.82c4.31-4.28 11.28-4.25 15.56.06l42.15 42.49 97.2-96.42c4.31-4.28 11.28-4.25 15.55.06l25.82 26.03c4.28 4.32 4.26 11.29-.06 15.56z" class=""></path></svg></span>');
}
});
};
The plugin calls the sbi_custom_js function after the feed loads and again after visitors click the Load More button. The check inside the code stops the checkmark from being added twice. The var $ = jQuery; line is needed because WordPress loads jQuery without the $ shortcut.
If you already have a snippet that defines sbi_custom_js, put this code inside that function instead of adding a second one. A second definition replaces the first, so only one of them would run.
Next, we’ll style the checkmark.
Styling the Checkmark
The checkmark is a small icon in a span with the class sb_verified. This CSS adds space on each side of it and makes it blue. To use it, add a WPCode CSS snippet in the site-wide header, or paste it into your theme’s Additional CSS. See How to Easily Add Custom CSS to Your WordPress Site for a step-by-step guide.
.sb_verified svg {
margin-left: 10px;
margin-right: 10px;
color: #5198e9;
}
Change the color value to any color you like. The margins set the space between the checkmark and the username.
That’s it! Your feed now shows a verified checkmark next to the username in its header. To show more than one feed on a page, see our guide on displaying multiple Instagram feeds.
Frequently Asked Questions
Below, we’ve answered some of the most common questions about the verified checkmark.
Why doesn’t the checkmark show in my feed?
The code adds the checkmark to the username heading in your feed’s header. If you don’t see it, check three things. First, the header is on and uses the Standard, Boxed, or Centered header style, which show the username heading the code looks for. Second, the shortcode on your page includes class="verified". Third, Show outside scrollable area in the Header section is off. When it’s on, the header sits outside the container that holds the class, and the checkmark doesn’t show. Turn that setting off to show it.
Can I show the checkmark on every feed?
Yes. Remove .verified from the start of the selector in the code, so it reads $('.sb_instagram_header h3'). Then the code adds the checkmark to the header of every feed on your site, and you don’t need the class in the shortcode.