1. Home
  2. Docs
  3. Insert HTML Snippet
  4. FAQ
  5. Can I embed the HTML Snippet into my template file?

Can I embed the HTML Snippet into my template file?

Yes, you can embed the HTML Snippet into your template file.

You cannot directly add the shortcode in the template file but you will need to pass the code into do_shortcode()function and display its output like this:

<?php echo do_shortcode('[SHORTCODE]'); ?> 

Note: Instead of [SHORTCODE] please use your HTML snippet shortcode.

Was this article helpful to you? Yes 11 No 2