ThemeShaper Forums » Thematic

Mint in functions.php

(3 posts)
  • Started 12 years ago by Manuel
  • Latest reply from Manuel
  • This topic is resolved
  1. Totally forgot about the Mint statistics when I switched to Thematic. Can someone please write a “Mint fix” for functions.php?

    Put the following code between the <head> tags (but after the <title> tag):
    <script src="/mint/?js" type="text/javascript"></script>
    Posted 12 years ago #
  2. Hi Manuel,

    the following code should do the job:

    function my_scripts($scripts) {
    	$scripts .= "\n" . "\t";
            $scripts .= '<script src="/mint/?js" type="text/javascript"></script>';
    	$scripts .= "\n";
    	return $scripts;
    add_filter('thematic_head_scripts', 'my_scripts');


    Posted 12 years ago #
  3. Yes, it does. ;) Thank you again.

    I made it to "thematic_head_scripts" and that I should use that one, but now you successfully ruined that learning curve. :D

    Posted 12 years ago #

RSS feed for this topic


You must log in to post.