• Rose

    (@thorned-rose)


    When the form is set as a widget, the widget is output with
    <h2 id="WPForms" class="widget-title">Example</h2>
    How can I change “WPForms” to something more relevant? I have a contact form as a widget at the bottom of the page and would like the header id to be “Contact” so I can create a jump link to it.
    e.g.
    <h2 id="contact" class="widget-title">Contact</h2>

    • This topic was modified 5 years, 11 months ago by Rose.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Ethan Choi

    (@ethanchoi)

    Hi thorned-rose,

    It looks like the HTML is generated for by WordPress for its widgets by default. Unfortunately we are not able to modify its ID in this case.

    I apologize for any inconvenience with that!

    Hi Thorned Rose,

    In case it helps, I took at look at the page you shared and compared it against my test site. Here’s a screenshot of the unique widget ID that’s added in my test site.

    My test site is running the Twentyseventeen theme, which appears to be what’s running on your site also (based on source code). However, it also appears that your site, or at least this one page, isn’t loading many assets and so it’s very possible a number of things aren’t working correctly.

    In any case, I wanted to let you know that it does appear that you should get a unique ID assigned to widgets in this theme — and so you may want to look into any code customizations that have been applied and troubleshoot from there.

    I apologize as aren’t able to assist further with this issue as it’s a result of details in your theme, but I hope this helps!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to change widget h2 id’ is closed to new replies.