ThemeShaper Forums » Thematic

Mint in functions.php

(3 posts)
  • Started 10 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 10 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');

    Chris

    Posted 10 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 10 years ago #

RSS feed for this topic

Reply

You must log in to post.