Viewing 12 replies - 1 through 12 (of 12 total)
  • I have the same issue…

    Plugin Author Baden

    (@baden03)

    Take a look at your id’s. They are ALL monkey1. Either remove the id="monkey1" completely, or use UNIQUE id’s. It’s kind of important.

    Thread Starter oculos

    (@oculos)

    Well, I tried that – just removed it, and not working at all. In fact, before I’d use<div id="target-<?php the_ID(); ?>", and it would work, but not anymore…

    Plugin Author Baden

    (@baden03)

    Ah, so if you are NOT using the shortcode, then you are using the roll-your-own method, and in this case you DO have to include a unique id tag for both the trigger and target elements. In the roll-your-own documentation you will see that your code must look like:

    <span class="collapseomatic" title="Fast Monkey" id="monkey1" >Fast Monkey</span>
    <span id="swap-monkey1" style="display: none;">Eek Eek</span>
    <div id="target-monkey1" class="collapseomatic_content">You might think you can catch a monkey, but you can't. Monkeys are FAST!</div>

    now if you want to add another element, you MUST change the id’s:

    <span class="collapseomatic" title="Fast Monkey" id="monkey2" >Fast Monkey</span>
    <span id="swap-monkey2" style="display: none;">Eek Eek</span>
    <div id="target-monkey2" class="collapseomatic_content">You might think you can catch a monkey, but you can't. Monkeys are FAST!</div>

    Dose this make any sense at all?

    Thread Starter oculos

    (@oculos)

    I tried. I copied exactly the second code, with multiple elements, and it’s only expanding, but not collapsing. I would like to use the shortcodes instead, but it is not working.
    Can you give me another hint on how to fix it?

    Thread Starter oculos

    (@oculos)

    I fixed the id problem by adding <?php the_ID(); ?> as the id, but, as I said, I only manage to expand, not to collapse…

    Thread Starter oculos

    (@oculos)

    It works now! The settings were set to “Slide only” (duh!) ??

    My bad. I just wish now I could use the shortcodes instead of a roll-your-own approach.

    Plugin Author Baden

    (@baden03)

    what happens when you do use the shortcode?
    Can you set up test page with a shortcode example and post the url here?

    Thread Starter oculos

    (@oculos)

    I will try to, but, meanwhile, just to clarify if we’re on the same page here, is the shortcode meant to be used on the template, or should it be used only on the post content?

    Plugin Author Baden

    (@baden03)

    • shortcode should be used on the post content.
    • you ‘can’ use the shortcode in the template, so long as you use it in conjunction with do_shortcode
    • You may also use the roll-your-own method in both the post content and the template, as it is just basic html/css

    And that’s how the seahorse do.

    Thread Starter oculos

    (@oculos)

    Wow, I learn some WP tricks, and seahorse must-known info! What could one possibly complain about? ??

    Thanks, I somehow thought that the shortcodes could be used on the templates, that’s why it never worked. I used the roll-your-own method then, cause it gives me more possibilities!

    Thanks a lot for the GREAT plugin!

    Plugin Author Baden

    (@baden03)

    You are very welcome! Don’t forget to vote for Pedro!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘It's expanding, but not collapsing!’ is closed to new replies.