Home › Forums › Support › how to put "my code" into footer.php without being deleted after updates? › Reply To: how to put "my code" into footer.php without being deleted after updates?
March 15, 2016 at 9:50 pm
#179614
Tom
Lead Developer
Lead Developer
Hi there,
If you have GP Hooks you can add it into the wp_footer hook in “Appearance > GP Hooks”.
If not, you’ll need to use a function like:
add_action( 'wp_footer','generate_my_custom_wp_footer' );
function generate_my_custom_wp_footer()
{
?>
Add your stuff in here
<?php
}
Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/
Hope this helps 🙂