elementor / elementor/elementor

🐞 Multiple Table of Contents widgets still create duplicate anchors (Duplicate of #11106)

Open
#25,786 0 comments 0 reactions 0 assignees View on GitHub
bug component/code duplicate mod* mod/b* mod/c* mod/d* mod/i* mod/svm* mod/v* product/pro widget/pro/table-of-contents
Dominant language
PHP
Stars
7.1k
Forks
1.6k
Avg merge
1d 5h
Merged PRs (30d)
193

Description

In [this thread](https://github.com/elementor/elementor/issues/11106), @mareklexuan identified an issue where having multiple Table of Contents widgets on a single page would cause issues with anchors.

The way that Elementor creates anchors for the ToC widget means that it assigns the same incremental anchors in each widget, preventing the links from actually taking viewers where they need to go.

As you can see in the text below, @nicholaszein stated that the issue was resolved in Elementor Pro v3.15.0. I checked the changelogs and can't find anything about the ToC widget in v3.15.0. I also continue to have the issue on my website, all the way in Elementor Pro v3.21.0.

> Hello there!
>
> We have great news! 🙌
>
> ### 📢 We're happy to announce that the issue you raised was resolved in Elementor Pro v3.15.0! 🥳
>
> ✅ Feel free to check it out and update your plugin to the new version!
>
> _Check the changelog for more information:_
> [Changelog of Elementor and Elementor Pro](https://elementor.com/help/changelog-of-elementor/)
>
> Cheers 🥂

_Originally posted by @nicholaszein in https://github.com/elementor/elementor/issues/11106#issuecomment-1658847798_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.