WordPress.org

Ready to get started?Download WordPress

Forums

WP-Piwik
[resolved] Please support footer.php (4 posts)

  1. themoosemind
    Member
    Posted 2 years ago #

    My current theme (Modern Style - http://wordpress.org/extend/themes/modern-style) uses footer.php and not wp_footer.php. This plugin doesn't work with footer.php. Could someone please fix this?

    (At the moment I've added the JS manually to footer.php, but it would be nice if this could be done automatically).

    Cheers,
    Martin

    http://wordpress.org/extend/plugins/wp-piwik/

  2. braekling
    Member
    Plugin Author

    Posted 2 years ago #

    It doesn't care if your footer file is named "wp_footer.php" or "footer.php". The javascript code will be added using the wp_footer() function, no matter where it's used.

    But if your theme avoids using wp_footer() for whatever reason, you have to add the script manually (or give wp_footer() a try in your footer.php).

  3. themoosemind
    Member
    Posted 2 years ago #

    Thanks for your answer!

    I just discovered that I added the admin-filter and forgot to logout when I checked if your plugin added the script. Sorry.

    Marked this topic as resolved, gave WP-Piwik 5 stars and marked your Plugin as working for the latest WordPress-version.

  4. braekling
    Member
    Plugin Author

    Posted 2 years ago #

    Thank you very much!

    Have fun using WP-PiwiK!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags