• Resolved flatword

    (@flatword)


    I am using WordPress 6.4.2 and theme Twenty Twenty Four.

    I have added an anchor tag called “About-Us” to the HTML ANCHOR setting for a group. When I view the source of the page, I see it has added an “id” instead of a “#”. See here:

    <h2 class="wp-block-heading has-text-align-center" id="About-Us">About Us</h2>

    I am dumbfounded as this should be one of the most straight-forward tasks to do.

    Any suggestions? What am I doing wrong? Or is WordPress “broken”??

    • This topic was modified 10 months, 2 weeks ago by Jose Castaneda. Reason: Removed login details

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • I have added an anchor tag called “About-Us” to the HTML ANCHOR setting for a group. When I view the source of the page, I see it has added an “id” instead of a “#”

    That’s the correct thing.

    The link (URL) has the #, but the destination (anchor point to jump to) gets an id attribute.

    If you want the gory details, here’s the technical specification: HTML Fragments Navigation.

    I am dumbfounded as this should be one of the most straight-forward tasks to do.

    Indeed, it is.

    Any suggestions? What am I doing wrong? Or is WordPress “broken”??

    In two words: case sensitivity.

    Your anchor point has the id About-Us, but your link has about-us.

    Thread Starter flatword

    (@flatword)

    Thank you George. Funny that I checked my email and saw no replies so I did more research and just fixed it. Then I went to update this post and saw your reply (and got the email).

    That’s what I get for working on this so late at night (and on a Sat night no less).

    Have a Happy New Year, George and thanks again for that quick reply.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘HTML ANCHOR field is inserting “id” instead of “#”’ is closed to new replies.