Thread Starter
Michael
(@mdorchain)
You’re right Steven, same issue.
Just thought yours was related to the jetpack only.
In both, the reason is the stripping of css class and maybe inline styles, but I haven’t checked it.
I get the same also-
After Update:
<a onclick="_gaq.push(['_trackEvent', 'outbound-article-', 'http://www.example.com', 'LinkText']);" href="http://www.example.com">LinkText</a>
What I had before:
<a class="arconix-button arconix-button-large arconix-button-blue" href="http://www.example.com">LinkText</a>
Meaning the CSS is stripped and no button shows.
Am using the Arconix shortcodes plugin.
I’ve made a quick fix for now: (google-analytics-for-wordpress/frontend/class-ga-js.php)
replace:
return '<a href="' . $full_url . '" ' . $link['link_attributes'] . '>' . $link['link_text'] . '</a>';
with:
`if ($link[‘link_text’] == “LinkText” || $link[‘link_text’] == “LinkText2”) {
return ‘<a class=”arconix-button arconix-button-large arconix-button-blue” href=”‘ . $full_url . ‘” ‘ . $link[‘link_attributes’] . ‘>’ . $link[‘link_text’] . ‘</a>’;
}
else {
return ‘<a href=”‘ . $full_url . ‘” ‘ . $link[‘link_attributes’] . ‘>’ . $link[‘link_text’] . ‘</a>’;
}`
I also have problems since the update. My blog layout is broken.
Your plugin removes ALL css class from ALL anchor links in the content. Please fix this!
Made a proper fix:(google-analytics-for-wordpress/frontend/class-frontend.php)
Line 195:
replace –
return 'onclick="' . $onclick . '"';
with –
return $link_attribute . 'onclick="' . $onclick . '"';
$link_attribute contains the css class information
Hope this helps!