When a new accordion is created, each panel is automatically identified as “panel1”, “panel2”, “panel3”, etc. – according to the current order of the accordion. This ID is the anchor tag.
NOTE: IF ACCORDION ORDER IS CHANGED OR NEW RIBS ARE ADDED OR REMOVED, PANEL ID’S COULD CHANGE BASED ON THE CURRENT ORDER OF THE ACCORDION. ANCHOR TAGS SHOULD BE REVIEWED AND UPDATED AS APPROPRIATE.
To link to an accordion panel in body text from:
- Page containing the accordion:
o Plain Text: <a href=“panel1”>displaytext</a>
o Visual: Link using #panel1
- Any other existing page:
o Plain Text : <a href=“https://sample2.usembassy.gov/documentation/media-library/#panel1”>displaytext</a>
o Visual: link using full site address with anchor tag:
Sample Accordion Panel