1. Home
  2. Docs
  3. XYZ WP Insert Code Snippet Premium
  4. FAQ
  5. How can I use the snippet short code in the header and footer template?

How can I use the snippet short code in the header and footer template?

You pass the code into do_shortcode()function and display its output like this:

<?php echo do_shortcode( '[SHORTCODE]' ); ?> 
Was this article helpful to you? Yes 4 No 1