Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Miles

    (@areoimiles)

    Hi @bene-2

    Thanks you for flagging this issue. I’m trying to re-create it locally so that I can debug, however when I duplicate an accordion it gives the new accordion and each item a new ID, same if I duplicate an accordion item.

    Please can you provide the steps you are taking to see this issue to help me re-create a resolve it? Also can you double check that the issue is actually related to duplicate ID’s rather than something else – if you select an accordion / accordion item you should see a section labelled Block ID in the settings panel where you can find the ID, double check the ID’s are the same on the duplicated block.

    Apologies for not being more help, but it’s tricky to debug if I can’t re-create it.

    Miles

    Thread Starter Ben

    (@bene-2)

    Hi Miles,

    thanks for answering! I had a look at it in detail: If you duplicate an accordion item, save the changes, and view the page in the frontend, the IDs of the items are the same. Now, the strange thing is: If you open the collapsed “block ID” tab of the accordion item in the backend, save the page again, and reload it, everything works because the IDs are now different. The same happens if you do this with the accordion container. So I guess there is an issue with writing the IDs into the collapsed “block ID” tab (?).

    If you don’t mind, I have another small request: Is it possible to change the default value of the accordion items to something else than h1 (since most of the time h1 is already used)?

    Thanks for your help!

    Plugin Author Miles

    (@areoimiles)

    Hi @bene-2

    Thank you for the additional details. I’ve given it a try following the steps you provided but unfortunately it’s still working as I would expect, see the video here:

    [video src="https://areoi.io/wp-content/uploads/2024/08/accordion-block-ids.mp4" /]

    Would it be possible to share a quick video of the error occurring? This will allow me to see see the exact steps you are taking and hopefully be able to re-create it.

    In regards to your other point around the element default, that’s no problem, I’ll update it to h3 as it makes more sense for an accordion.

    Thanks
    Miles

    Thread Starter Ben

    (@bene-2)

    Thanks for the video! When I duplicate the accordion the way you did, everything works fine. However, I usually use the list view to duplicate or modify the blocks. I’ve recorded the issue; I hope this link works: https://streamable.com/vltkps?src=player-page-share (it happens around 00:07).

    It seems like the problem only occurs when using the list view. For now, I’m okay with duplicating the items using your method.

    Plugin Author Miles

    (@areoimiles)

    Hi @bene-2

    Thanks for the video, that’s helped me identify the issue. I’ve just released an update (1.3.21) which should resolve this for you. However, if you continue to have issues, please don’t hesitate to get back in touch.

    Thanks
    Miles

    Thread Starter Ben

    (@bene-2)

    It is working now, awesome! Thanks a lot for the quick bugfix!

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.