I set the setting of Liveticker to 30s an ajax is checked.
I also tried to activate embeded java script.
But when i change text of tick nothing happens on the side.
Of course when i refresh the change appears.
WordPress is up to date, design is avada.
Thanks for your help..
We are using an overlay for embeds (tweets, youtube vids, etc.) which asks the user to opt-in to privacy policy before the embedded content is shown.
This overlay does not work for Ajax content.
Therefore we’d like to modify the tick’s contents so that the overlay is disabled for all embedded content inside the ticker.
Is there any filter we can hook into in order to modify the tick’s content?
]]>Script-tags included in the ticks are not executed (because of the use of “n.innerHTML = u.h”. Because of this, embeds (like Twitter, Instagram, … ) are not shown in ticks.
This could be fixed by switching to underneath code. Could this be added to the plugin?
var n = document.createElement( 'ul' );
n.innerHTML = u.h;
// insert:
var scripts = Array.prototype.slice.call(n.getElementsByTagName("script"));
for (var i = 0; i < scripts.length; i++) {
if (scripts[i].src != "") {
var tag = document.createElement("script");
tag.src = scripts[i].src;
document.getElementsByTagName("head")[0].appendChild(tag);
}
else {
eval(scripts[i].innerHTML);
}
}
// end insert
// Prepend new ticks to container.
while ( n.hasChildNodes() ) {
t.e.prepend( n.lastChild );
}
]]>