Do you have a question about WordPress or BoldGrid? You’ve come to the right place. Feel free to post your questions or browse other visitors questions and comments as well.
Onclick Function not Working in Visual Editor
I want to add the google outbound click tracking function to the html code using boldgrid.
The code is standard google stuff:
<a href="http://www.example.com" onclick="trackOutboundLink('http://www.example.com'); return false;">Check out example.com</a>
I first add the above code to the html code in boldgrid using text mode and then switch to visual mode. If I switch back to text mode, the onclick function has been deleted…
Funny thing is if I don’t switch to visual mode and save the post/page, the outbound link tracking seems to work in google Analytics
Thank you for contacting us. This is actually the nature of the WordPress editor. To quote a WordPress moderator in this post, “It is expected behaviour. The Visual tab is not meant to be used as a preview of the Text tab. The “Preview” button is meant to be used to preview your Text editor changes.”