• This really looks promising as it gives you the possibility to attach the “showhide” function to almost anything BUT – it just does NOT work above the first instance on the page.

    This must be a wide spread problem – I’ve seen similar questions raised on the plugin demo page, sadly, left unanswered.

    I’m pretty sure it has something to do with the “#” thingy in the code but…
    And yes, I have different IDs for specific show/hide instances.

    Please, are we just chasing a dream – or can it be done somehow??

    https://wordpress.org/plugins/better-wordpress-showhide-elements/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter pankevely

    (@pankevely)

    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) 😉

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Multiple instances on one page’ is closed to new replies.