Articles on: Content Creation, Design & Layout

How to use Smart Snippets™ on your blog

In this guide, you’ll learn how to create and manage Smart Snippets™. Smart Snippets™ allow you to create reusable content blocks, such as CTAs, forms, images, or messages, and automatically place them anywhere on your blog.


Adding a new Smart Snippet™

In your DropInBlog admin account, find the Smart Snippets™ tab in the menu on the left and click it to open the Smart Snippets™ page.

Smart Snippets tab in the DropInBlog admin menu

On the page that opens, click the Add your first snippet button.

Creating a new Smart Snippet

Clicking this button will open the Smart Snippets™ editor.


Once in the editor, you can choose between the Editor View and the Code View.

Editor View and Code View toggle in the Smart Snippets editor

The Editor View is used for adding headings and CTA buttons, while the Code View works with blocks of code you usually get from third-party apps, such as form builders and email marketing services.

Customizing Smart Snippets™

We’ll select the Code View to show you how you can use Smart Snippets™ to add an online form to your blog.


To do that, you’ll need to create a form using an app like Jotform or Tally.


Then, within the selected app, you should find the option to share the form.


With Jotform, you’ll get the code to embed the form in an iframe, which you can then copy and paste inside the Smart Snippets™ editor using the Code View.

Pasting form code inside the Code View within Smart Snippets editor

After that, you should do the following:

  1. Name your Smart Snippet™.
  2. Make sure the Active switch is on.
  3. Select where you want the Smart Snippet™ to appear.

Snippet Name, Active switch and Snippet Location settings in the Smart Snippets editor

When it comes to Snippet Location, you can choose one of the three options: Targeting, Insert with Post Editor, or Both.

Snippet location: Targeting

If you select Targeting, three options will appear to help you decide on the exact placement of your Smart Snippet™.


These options include Targeting Position, Target Element, and Posts to Target.

Targeting Position, Target Element, and Posts to Target settings in the Smart Snippets editor

Targeting Position lets you choose whether you want the Snippet to show before or after a specific element. That specific element is located in the dropdown below Target Element. Available options include Post Title, Featured Image, Post Info, Content, and Target Element.

Target Element dropdown options in the Smart Snippets editor

The last option, Target Element, is only available to DropInBlog customers on Business and Business Plus plans and gives them even more control over their Snippet placement, allowing them to set their Snippet location to target specific elements (more information on this below). 


You can then decide in which of your blog posts the Smart Snippet™ will appear by selecting one of the available options under the Posts to Target section.

Posts to target options in Smart Snippets editor

You can show a Smart Snippet™ in all posts, in posts from a specific category, by a specific author, or in the posts you select manually.


Below these options, you’ll see Advanced Filters that allow you to include or exclude specific authors, posts, and categories from the previously selected option.

Advanced Filters for authors, categories and posts in the Smart Snippets editor

For example, you can include your Smart Snippet™ in all posts on your blog, except the posts in the Tips category.


To make things simple, we’ll choose the All Posts option, without additional filters.


Before you can view your Smart Snippet™, you should click the Create Snippet button at the bottom of the page.
Create Snippet button in the Smart Snippets editorTo view the Snippet you just created, click the View Blog button in the top-right of the Snippet editor and open one of the posts in which you selected the Smart Snippet™ to appear. 


For this guide, we selected a Jotform form to appear on all our posts below the post content, and this is how that looks on the live site.

Jotform signup form shown below the post content on a live blog


Advanced Smart Snippets™

The Advanced Smart Snippets™ feature is only available on Business and Business Plus plans.

With Advanced Smart Snippets™, you have greater control over where your content will appear. If this feature is enabled for your account, open the Target Element dropdown and select the last option, also called Target Element.

Advanced Smart Snippets: targeting elements

Selecting this option will allow you to add your content before or after a specific number of paragraphs or headings (H2, H3, H4).


In the screenshot below, the Smart Snippet™ is set to show after the second H2 heading in all blog posts.

Target element settings for Advanced Smart Snippets

If a post doesn't have as many paragraphs or headings as the number you set, the Snippet will show after the last available one, whether you selected Before or After.


By combining the numbers and post elements under Target Element Before or Target Element After, you can fine-tune the positioning of your reusable content blocks.

Snippet location: Insert with Post Editor

Another option you can select when you create a Smart Snippet™ is to add it from within the post editor.


To do that, upon creating a Smart Snippet™, select the Insert with Post Editor option from the menu on the right.

Smart Snippet location: Insert with post editor

Click the Create Snippet button and exit the Snippet editor.


Then, go to the Posts tab, open the post where you want to add a Snippet, and click the Smart Snippet™ icon in the editor’s navigation bar.

Smart Snippet icon in the DropInBlog post editor toolbar

A pop-up window will appear where you’ll see a list of available Snippets. If you don’t see your Snippet, use the search bar at the top to find it, then click Insert.

Smart Snippet Insert button

When you add a Snippet into the editor, it will look like the image below.

Smart Snippet placeholder in the DropInBlog editor

After you publish the changes you made, the Snippet will look like a form, CTA button, or anything else you selected.


Snippet location: Both


If you select Both, you can use the two methods together. The Snippet will appear in the posts you set under Targeting, and you can also add it to any other post from the post editor.

Both selected under Snippet Location in the Smart Snippets editor

Editing and deleting Smart Snippets™

To edit a Smart Snippet™, open the Smart Snippets™ page and click on the Snippet you want to edit. Alternatively, click the kebab menu on the right and select Edit Snippet.

Editing Smart Snippets

Selecting Edit Snippet will open the Smart Snippets™ editor, where you can edit the Snippet.


To delete a Smart Snippet™, on the same page, look for the kebab menu to the right of the Snippet you want to delete.


Click this menu, then select Delete from the dropdown.

Deleting a Smart Snippet

You can create a copy of an existing Snippet using the same menu and edit it as you’d like. Just select Duplicate from the dropdown.

Using Smart Snippets™ via the DropInBlog API

Smart Snippets™ work differently for users who have integrated DropInBlog via API and aren’t inserted into posts automatically. Instead, your application needs to use the snippet data from the API response to position each snippet accordingly.


When you fetch a post via the API, two main properties control how Smart Snippets™ appear: snippetsPositioning and snippets. These work together to tell you what snippets exist and where they should be inserted within the post layout.


"snippetsPositioning": {
"before_title": [],
"before_featured_image": [],
"before_meta": [],
"before_content": [],
"before_elements": [],
"after_title": [],
"after_featured_image": [],
"after_meta": [],
"after_content": [],
"after_elements": [129]
}

"snippets": {
"129": "<p> <a href=\"#\" class=\"dib-cta-break\" rel=\"\">Download your free PDF Now</a></p>"
}


If you have any questions about this feature or how to use it, drop us a line.


Happy blogging!

Updated on: 12/11/2026