Reply 63219 to: Integrate a link in a toggle element Part II

Avatar: Royalty
Royalty
Participant
May 11, 2015 at 16:05

I inserted the following code into a textfield of Visual Composer

[toggle_block class="bordered Multiple"]
[toggle title="Google Analytics"]
1. <a href="http://www.google.com/analytics/terms/de.html" target="_blank">Allgemeine Nutzungsbedingungen von Google Analytics</a>
2. <a href="javascript:gaOptout()">Google Analytics deaktivieren</a>
[/toggle]
[/toggle_block]

When I then save and open the page, the first link works, the second link doesnt work. I open the editor again and see that my code was automatically modified to:

[toggle_block class="bordered Multiple"]
[toggle title="Google Analytics"]
1. <a href="http://www.google.com/analytics/terms/de.html" target="_blank">Allgemeine Nutzungsbedingungen von Google Analytics</a>
2. <a>Google Analytics deaktivieren</a>
[/toggle]
[/toggle_block]

means that the part href="javascript:gaOptout()" was just deleted.
Many thanks in advance!

Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.