How to set an anchor link to an accordion item in WordPress?

Key Takeaways

  • The Nexter Blocks Accordion block allows users to link directly to specific accordion items using the Unique ID option.
  • Users must add an ID with # in the Link field of the Advanced Button block to create a link to an accordion item.
  • The Nexter Blocks requires installation and activation to access the features of the Accordion block.
Table of Contents

WordPress is an incredibly useful platform for creating dynamic websites and blogs. One popular feature of WordPress is an accordion which helps to break up content into easily readable chunks. This can come in particularly handy when you want to send a user directly to a particular accordion item.

However, it can be tricky to link directly to an accordion item from elsewhere on your site but by using the Unique ID option of The Nexter Blocks Accordion block, you can do that easily.

To check the complete feature overview documentation of The Nexter Blocks Accordion block, click here.

Requirement  – This block is a part of The Nexter Blocks, make sure its installed & activated to enjoy all its powers.

To do so, add the accordion block on the page and click on the accordion item that you want to link to. In the Unique ID field, add an id.

accordion layout unique id new

To link that accordion item, you must use the id with #. For instance, let’s use the Advanced Button block of the Nexter Blocks.

Add the ID with # in the Link field.

accordion layout advanced block link new

Now you have linked the button with that specific accordion item, so when someone clicks on the button it will take them directly to that accordion item.

Also check, How to use Image Gallery, Video inside Accordion WordPress Block.

About the Author

Photo of Aditya Sharma CMO of NexterWP
CMO at POSIMYTH Innovations · NexterWP · 7 years experience

He has spent years in the WordPress ecosystem building, breaking, and optimizing sites until they actually perform. He works at the intersection of speed, growth, and usability, helping creators ship websites that load fast and convert. An active WordPress community contributor sharing through tools, tutorials, and direct collaboration. Tested practice, not theory.

WordpressThemesElementorn8nAIClaudeAutomationServer

Share your Thoughts

Get Instant Answers to all your questions about Nexter Blocks,
Extensions & Theme trained on 1000+ Docs and Videos

Still in Doubt? Let’s Assist You

Have Feedback or Questions?

Join our WordPress Community on Facebook!

Related Frequently Asked Questions

What should I do if my anchor link doesn't scroll to the accordion item?

If your anchor link isn't working, ensure that the Unique ID is correctly set in the accordion item's settings. The ID must match exactly in the link field, prefixed with a '#'. For example, if your ID is 'item1', your link should be '#item1'. A common mistake is forgetting the '#' or having a typo in the ID.

What is the best practice for naming Unique IDs in accordion items?

When naming Unique IDs for accordion items, use descriptive and concise names that reflect the content of the item. This makes it easier for users to understand what they are linking to. Avoid spaces and special characters, as these can cause issues with the anchor link functionality.

Does the Nexter Blocks Accordion block support linking to multiple items?

The Nexter Blocks Accordion block allows you to link to individual items using Unique IDs. However, each link can only point to one specific accordion item at a time. If you need to link to multiple items, you will need to create separate links for each item using their respective Unique IDs.

What happens if I forget to set a Unique ID for my accordion item?

If you forget to set a Unique ID for your accordion item, the anchor link will not work. Users clicking the link will not be directed to the intended accordion item, resulting in a frustrating experience. Always ensure that each accordion item you want to link to has a Unique ID assigned.

Last reviewed: April 15, 2026

Related Docs