Well, this is the most basic usage of the plugin:
<a href="#" showhide="1stID">
This is 1st Show-Text, This is 1st Hide-Text
</a>
<div id="1stID">
1st Text.
</div>
Unfortunately, adding more instances just breaks it.
<a href="#" showhide="2ndID">
This is 2nd Show-Text, This is 2nd Hide-Text
</a>
<div id="2ndID">
2nd Text.
</div>
Doing this, “This is 2nd Show-Text, This is 2nd Hide-Text” appears in plain text, followed with “2nd Text” not hidden but clearly visible.
This is an issue for my site also. I like that this plugin let’s me style the “show more” text without getting into CSS. I’d like to use Better WP showhide on multiple pages, but when the pages appear together, only the first instance works. Is there any chance of a fix?
Thanks.
This is happening for me too, with the exact situation that pankevely describes.
How can someone release code with this bug?
Can I haz a fix plz?
Mkay, if you want to fix this you have to replace
for (var i = 0; i < settings.length; i++){
settings[i] = settings[i].trim();
}
with this:
for (var j = 0; j < settings.length; j++){
settings[j] = settings[j].trim();
}
This dude is using same variable in nested loop #DoYouEvenCode #GoPlayTetris
Just kidding 😀
But this is the fix 😉
Hi,
thank you very much for the fix!
I would like to use it differently though – to have few paragraphs hidden at page load, and after klicking any of the links, I would like all of them to unhide. Would there be an easy way to hax that too? 🙂
I found this plugin too bulky to bother with
What this code does in 100 lines with bugs can be done in 15, unfortunately I cannot find original source of my solution
If you are interested, I can copy it from my webpage, however I am not advanced in javascript enough to hax it for your needs
Try to google some solution, you will have to look for longer, but I am sure you will find it somewhere (stackoverflow most likely) 😉