Title: wp_footer function question
Last modified: September 3, 2020

---

# wp_footer function question

 *  [marc tallec](https://wordpress.org/support/users/entropik/)
 * (@entropik)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/wp_footer-function-question/)
 * hi, I’m a “Chaplin” lover and use it for a long time now…
 * I just can’t find how to install the HubSpot WordPress plugin correctly, because
   I don’t know how to included the “wp_footer function” in the footer.php.
 * What do I need to modify or use a child theme ?
 * Thank’s for your ideas and help
 * M.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwp_footer-function-question%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [mrwweb](https://wordpress.org/support/users/mrwweb/)
 * (@mrwweb)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/wp_footer-function-question/#post-13357844)
 * [@entropik](https://wordpress.org/support/users/entropik/) This is really a better
   question for the HubSpot plugin, as the solution shouldn’t be specific to the
   Chaplin theme.
 * You don’t need to create a Child Theme to do this unless you wanted specifically
   to include the necessary code in a theme `functions.php` file. Instead, I would
   recommend using a custom plugin that’s just the following:
 *     ```
       <?php
       /*
       Plugin Name: HubSpot Custom Footer Code
       Version: 1.0
       */
   
       add_action( 'wp_footer', 'wp13354262_hubspot_code' );
       function wp13354262_hubspot_code() {
       	?>
   
       	<!-- your custom code goes here -->
   
       	<?php
       }
       ```
   
 * HOWEVER, I’m very surprised that the plugin couldn’t output the necessary code
   in the exact same way, so like I said, I’d request support on the plugin’s forum.

Viewing 1 replies (of 1 total)

The topic ‘wp_footer function question’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/chaplin/2.6.8/screenshot.png)
 * Chaplin
 * [Support Threads](https://wordpress.org/support/theme/chaplin/)
 * [Active Topics](https://wordpress.org/support/theme/chaplin/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/chaplin/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/chaplin/reviews/)

## Tags

 * [footer.php](https://wordpress.org/support/topic-tag/footer-php/)

 * 1 reply
 * 2 participants
 * Last reply from: [mrwweb](https://wordpress.org/support/users/mrwweb/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/wp_footer-function-question/#post-13357844)
 * Status: not resolved