• Hello. I have coded my client’s event page in such a way that selecting a category tab on the page shows only events from the tabbed category. This involves having multiple category shortcodes on the same page. Everything works great, but I’m running into a problem because every VSEL shortcode includes an element with the same ID: <div id=”vsel”>. Because I have 10 shortcodes on the same page, this ID is being used 10 times, which breaks HTML protocol (a specific ID can only be valid once on a page). Is there a way to have each one increment, for example: <div id=”vsel-1″> … <div id=”vsel-2″>, etc?

    While it does currently function, having the duplicated ID is causing other problems. Thanks in advance!

    The page I need help with: [log in to see the link]

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

    (@guido07111975)

    Hi,

    That’s a tricky one because you’re not the only one who has multiple shortcodes on the same page, and users could have applied custom CSS to the #vsel ID already. Don’t want to break this.

    An alternative could be to add a setting, so user can activate this unique ID. But I have to find out how to accomplish this. Could use the same technique as the native widgets. Will keep you informed.

    Guido

Viewing 1 replies (of 1 total)
  • The topic ‘Possible to numerate / increment ID?’ is closed to new replies.