• 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 to see the link]

Viewing 1 replies (of 1 total)
  • @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.