• Resolved Lo?c Parent

    (@lowick)


    Hello,

    I report just something I noticed on a site:

    When I use the shortcut to show the cookie_settings button, there are two time the same id in the page (in the disclaimer and in the page). Maybe this could be better to manage the button without the id attribute to avoid this.

    Version of WordPress: 5.8
    Version of GDPR Cookie Consent plugin : 2.3.6

    Have a nice day,
    Lo?c

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author WebToffee

    (@webtoffee)

    Hi @lowick,

    As you are a premium version plugin user, kindly submit your query here. This forum is for free version only and we cannot answer other queries here.

    It looks like this applies to free version (2.0.6) too, W3C validator returns error: duplicate ID “cookie_action_close_header”.

    Plugin Author WebToffee

    (@webtoffee)

    Hi @clipb,

    We haven’t added any IDs to the cookie settings button. Could you please clear the site cache and check again via the validator. Also, share the site URL.

    Thanks for the reply, “#cookie_action_close_header” is present in output of [cookie_button] shortcode, which I had by mistake in two places. For me removing one of them is fine and solves the issue.

    Thread Starter Lo?c Parent

    (@lowick)

    Hi @clipb & @webtoffee,

    Yes, I confirm that I have IDs on my website too.
    You can see one of them in the following screenshot:

    https://snipboard.io/juxvsJ.jpg

    This ID is related to the cookie_settings button (when I use the shortcut to show it).

    Have a nice day,
    Lo?c

    @lowick in the free version of the plugin I don’t have id attribute at all in the output of [cookie_settings] shortcode, but I agree that, if there’s reason to use shortcode multiple times, it will be better to avoid using IDs.

    Plugin Author WebToffee

    (@webtoffee)

    Hi @lowick.

    We understand your concern, but since there could be other users using this ID to make their own style customisation, we cannot remove it from the plugin.

    Thanks for understanding.

    Thread Starter Lo?c Parent

    (@lowick)

    Hi,

    Yes, I understand that this is complicated to remove this now. (Maybe later with a future major release).

    This is not a big problem and I just wanted to inform you about it ??

    Kind regards,
    Lo?c

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘The id is repeated in shortcut’ is closed to new replies.