I'm using the wp_footer hook into the plugin and it doesn't work, but when I copy the code to the "functions.php" file of the active theme it does work, what is the possible problem in this situation ?
function mixpanel_footer(){
echo '<a style="margin-left:45%;" href="https://mixpanel.com/f/partner"><img src="//cdn.mxpnl.com/site_media/images/partner/badge_white.png" alt="Mobile Analytics" /></a>';
}
add_action( 'wp_footer', 'mixpanel_footer' );
functions.php
? if not maybe your theme doesn't havewp_footer
in thefooter.php
Without code that's my first guess.wp_footer
infooter.php
, that's why it's working when I put the code infunctions.php