Closed GoogleCodeExporter closed 8 years ago
Thanks for adding this. Hopefully it can make it into the next version. For now
I'll
just add an action by that name to my local copy right before </head>:
//--></script>
<?php do_action('cfmobi_wp_head')?>
</head>
Original comment by simianuprising
on 2 Jan 2010 at 7:15
In case someone finds this later, here's a paste of the code I used to add
Google
Analyticator support to Carrington Mobile:
http://pastie.org/764199
You could add that to any plugin file you want, normally I'd put it in
functions.php
but clearly that's not going to help with this situation, where my main goal
was to
avoid editing the carrington mobile theme files because when the theme is
updated you
have merging headaches.
Note that I found the 'add_google_analytics' function in the analyticator
plugin file
because it was being added to the 'wp_head' action like so:
add_action('wp_head', 'add_google_analytics');
If you have a plugin that is broken on your mobile site and its because its
missing
some key js/css then you likely need to make sure the function being hooked to
wp_head is added to the new cfmobi header hook mentined in this ticket. If
you're not
sure try loading the mobile version of your site in Firefox (using
?cf_action=show_mobile at the end of your url) and viewing source. If there is
plugin
stuff showing in the html header of your normal site but not the mobile version
then
this hook might solve your problems.
Original comment by simianuprising
on 2 Jan 2010 at 7:23
Original comment by alexking...@gmail.com
on 6 Jan 2010 at 5:29
Original issue reported on code.google.com by
alexking...@gmail.com
on 1 Jan 2010 at 7:54