• Resolved Baumr

    (@baumr)


    Hi folks,

    When I look at the source code that the FPA plugin generates when I include a featured page into widgets on the Genesis theme, it creates a new ID:

    <section id="featured-page-advanced-14" class="widget featured-content featuredpage">
    <section id="featured-page-advanced-15" class="widget featured-content featuredpage">
    <section id="featured-page-advanced-16" class="widget featured-content featuredpage">

    That’s great, but this never resets, and the IDs keep going (even for deleted content).

    These numbers can grow and also become difficult to target via CSS if they keep changing.

    Is there a way to influence these changes? Reset them, or chose a number manually for each widget?

    Also, when I reinstall the plugin, it never starts on one, but two:

    <section id="featured-page-advanced-2" class="widget featured-content featuredpage">

Viewing 1 replies (of 1 total)
  • Plugin Author Nick Diego

    (@ndiego)

    Hi Baumr,

    Thanks for reaching out. The widget ids are internally generated by WordPress. Unfortunately, this is not something that we have control over. If you need to target the widgets with CSS, I recommend you use featuredpage. Sorry I do not have a more definitive answer for you!

    Let me know if there is anything else I can help with.

    Nick

Viewing 1 replies (of 1 total)
  • The topic ‘Reset plugin’s section ID counter’ is closed to new replies.