1. Home
  2. Docs
  3. Insert HTML Snippet
  4. FAQ
  5. How can I use the HTML snippet in my wordpress site?

How can I use the HTML snippet in my wordpress site?

First install the “Insert HTML Snippet” plugin in your wordpress site using the instructions in https://help.xyzscripts.com/docs/insert-html-snippet/installation/

Now go to the “HTML Snippets” section

snippet

Click the “Add new HTML snippet” button.

add-snippet

Here enter the “Tracking name”, “HTML code” and click the submit button.

add-snippet-2

The snippet is now ready to use and you can see the shortcode of the snippet.

snippets

Now when creating a new post/page, you can add the shortcode directly in the post content.

snippet-code

Also you can see all your snippets in the dropdown in the editor with name “HTML” as show below.

snippet-dropdown

Here we can see all our snippets with the “Tracking Name” and select one. Then it will place the shortcode in the post.

snippet-dropdown-2

Was this article helpful to you? Yes 5 No 7