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]' ); ?>
You pass the code into do_shortcode()
function and display its output like this:
<?php echo do_shortcode( '[SHORTCODE]' ); ?>