Quick Answer
A Divi anchor link needs two matching parts: one unique target ID, such as course-overview, and a link containing #course-overview. The target ID itself does not include the hash. Check the saved page, the actual destination and what happens around fixed headers and keyboard navigation before approving the link.
Separate the target from the link
The November 5, 2023 Elegant Themes tutorial demonstrates connecting a Button Module to an identified section. Its interface screenshots are historical; inspect the controls in the actual installed Divi version.
Current Divi 5 Attributes guidance places an element’s ID in Advanced settings under Attributes. Choose the intended target element and its ID value. A button’s destination URL is a separate setting from the target’s identifier.
MDN’s HTML ID reference requires uniqueness within the document and no ASCII whitespace. A simple descriptive value using lowercase letters and hyphens avoids many selector and typing complications.
Match one button to one saved section
Here is a hypothetical course page. These values illustrate the relationship; they are not changes or checks performed on a real page:
- Target on the course page
- The overview section has
id="course-overview". Its identifier iscourse-overview, without a leading hash. - Button on that same page
- Its destination is
#course-overview. The fragment identifies the target within the current document. - Button on another page
- Its destination includes the course page path, for example
/sample-course/#course-overview. A fragment alone would search the button’s current page instead. - Ambiguous copied section
- If another section was copied with the same ID, assign distinct identifiers through an authorized edit and update the intended links. Do not approve a duplicate-ID page because one click happened to scroll somewhere plausible.
- Acceptance record
- Identify the source page, saved button destination, exact target and tested state. Keep any untested device or input behavior open rather than calling the link complete.
Check where the visitor actually arrives
Follow the link on the saved frontend, including from a different page when that is the intended route. Confirm that the expected section is present and understandable. A builder preview does not establish that the published target and URL match.
If a fixed header covers the destination, review the actual header height and target spacing. The CSS scroll-margin-top property is one possible implementation tool; any chosen offset needs checking with the site’s actual scrolling behavior, widths and zoom.
Also operate the link by keyboard and check the next Tab action and visible focus. Seeing the viewport scroll does not by itself prove that focus moved to a useful place. Record observed behavior before deciding whether additional implementation work is needed.
The header and navigation guide covers the wider route and keyboard review. The responsive header guide addresses separate module copies, while the Divi recipient guide covers a different destination type: contact-form email recipients.
Key Takeaways
- Keep the target ID and linking fragment distinct.
- Use one unique target per document.
- Include the destination page path when linking from another page.
- Review saved arrival, header overlap and keyboard behavior separately.
Frequently Asked Questions
Does the target ID include the hash?
No. The hash belongs in the link fragment. The target’s ID value is the matching identifier without it.
Why does the same fragment work on one page but not another?
A fragment alone refers to the current document. A link from another page needs the correct destination page path as well as its target fragment.
Does scrolling prove keyboard focus is correct?
No. Check the actual focus position, visible indicator and next keyboard action in the implemented page.

