2016-04-19, 00:58:48
Hello there, i have a conflict if i try to show hidden content using I18N Gallery.
I'll explain whati need to do, i will create some hidden galleries who revealed on click.
In the editor everything works if i put a code like this:
But, if i put gallery shortcode (% gallery%) instead hidden content the result is corrupted, the output show the gallery without click.
How can i fix it?
Best
I'll explain whati need to do, i will create some hidden galleries who revealed on click.
In the editor everything works if i put a code like this:
Code:
<script>
function show(div, contents)
{
document.getElementById(div).innerHTML = contents;
}
</script>
<p><a href="#" onclick="show('mydiv1', 'hidden content')">Show Content</a></p>
<div id="mydiv1">Click to show hidden content</div>
But, if i put gallery shortcode (% gallery%) instead hidden content the result is corrupted, the output show the gallery without click.
How can i fix it?
Best