Skip to content

Instantly share code, notes, and snippets.

@gmmedia
Last active June 22, 2021 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gmmedia/c5f093c889207b7d6aa557b485d4d486 to your computer and use it in GitHub Desktop.
Save gmmedia/c5f093c889207b7d6aa557b485d4d486 to your computer and use it in GitHub Desktop.
Kadence page template wp_footer
<?php
/**
* Template Name: Tools
*
* @package kadence
*/
namespace Kadence;
add_action('wp_footer', 'j0e_add_to_footer');
function j0e_add_to_footer(){
?>
<script src="/wp-content/.../js/xxxx.js"></script>
<?php
};
get_header();
kadence()->print_styles( 'kadence-content' );
/**
* Hook for everything, makes for better elementor theming support.
*/
do_action( 'kadence_single' );
get_footer();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment