
Credit to Paul for pointing me in the right direction for cleaning up the titles reflected in my Mint install. Prior to the title modifier, Wordpress’s methodology for displaying the sites title in front of individual post titles was pushing content from view in Mint. Check the screenshot for a visual. Notice the cluttered titles on the left? It’s a lot easier to understand what’s being tracked when titles are readable.
Wordpress users running Mint as their statistical tracking can achieve the same results using the following:
<?php if (is_home()) { ?>
<script type="text/javascript">
// <![CDATA[
var Mint_SI_DocumentTitle = "5ThirtyOne | It's not wheatgrass";
// ]]>
</script>
<?php } else {
$tmpMintTitle = wp_title(”, false);
$tmpMintTitle = substr($tmpMintTitle, 2, strlen($tmpMintTitle));
?>
<script type="text/javascript">
// <![CDATA[
var Mint_SI_DocumentTitle = "<?php echo $tmpMintTitle ?>";
// ]]>
</script>
<?php } ?>
<script src="/mint/?js" type="text/javascript">
</script>
Note that you must change 5ThirtyOne | It’s not wheatgrass to reflect your own page title. Shaun Inman’s original Mint: Overriding Page Titles covers the official title modifier.























One Comment
Quote
I just wanted to say thanks. This solved my only problem(so far) with Mint.
Love the site btw.
Incoming Links
Leave a Reply