• Resolved Mark Ransome

    (@janmarlife)


    Hi there,

    Great plugin, however when I click on one topic, everything opens or closes. I’m not sure if I have set it up right. I want it so that when you click a topic only that one opens, then when you click another, the previous one closes etc.

    You can see what I mean if you go to my FAQ page:

    https://www.zoomladirectory.com/frequently-asked-questions/

    Here is my current code:

    [expand title=”Is This Website Really Free?” rel=”animal-highlander” tag=”h4″ id=”title”]Yes. It is totally free to join and post your business, organization or simply a place of interest. However, we do reserve the right to charge in the future. Simply register for your free account here.[/expand]

    [expand title=”Are My E-mail Details Safe?” rel=”animal-highlander” tag=”h4″ id=”title”]Yes. We respect your privacy and we do not share any of your details with any third party. For full details about our Privacy Policy, you can read them here.[/expand]

    [expand title=”How Many Listings Can I Post?” rel=”animal-highlander” tag=”h4″ id=”title”]Once you have registered, you can post as many listings as you wish, all we ask when posting a listing is that all of the information contained in your listing is correct and up to date.[/expand]

    [expand title=”How Many Images Can I Upload?” rel=”animal-highlander” tag=”h4″ id=”title”]You can upload as many images per listing as you wish. Each image has a limit of 5MB.[/expand]

    [expand title=”What Are Tags?” rel=”animal-highlander” tag=”h4″ id=”title”]Tags are keywords related to your listing, for example, if your listing is about dog training then some tags might be, “Dog Training, Training Dogs, Dogs”. Tags help people search for what they are looking for so the more relevant your tags are, the better! Make sure you separate your tags with a comma and no more than 40 characters.[/expand]

    Kind regards,

    Mark Ransome.

    p.s.

    I am thinking of upgrading to your Pro version!

    https://www.ads-software.com/plugins/jquery-collapse-o-matic/

Viewing 1 replies (of 1 total)
  • Plugin Author Baden

    (@baden03)

    janmarlife:
    the problem is very simple: your id tags must be unique.
    you can either:
    a) remove the id attribute all together:

    [expand title="What Are Tags?" rel="animal-highlander" tag="h4"]Tags are keywords....[/expand]

    no recommend if you have more than 5 expand elements, as the id’s will be randomly assigned and the more elements the greater the probability that an id will be duplicated.
    b) assign a custom id:

    [expand title="What Are Tags?" id="about_tags" rel="animal-highlander" tag="h4"]Tags are keywords....[/expand]

    Please let us know if that resolves the issue for you.

    It’s great that you are thinking about going pro! We just released a new add-on plugin called Collapse Commander that might be very useful to you. it would reduce all of that code you posted to something like:

    [expand cid="1" /]
    [expand cid="2" /]
    [expand cid="3" /]
    [expand cid="4" /]
    [expand cid="5" /]

    and provide an interface to manage all of the expand elements used throughout your entire site.

Viewing 1 replies (of 1 total)
  • The topic ‘Collapsing’ is closed to new replies.