• Resolved ttaavi

    (@ttaavi)


    I have a link inside the banner description, and I would like to add a data attribute and a class to the link so that it opens my Cookie Policy modal. I tried to edit the description as code and add the attribute and class to link this way, but after saving and refreshing, it was removed.
    how I would like to use:

    <p>
    "description.... <a data-custom="custom" class="js-custom" href="...">
    Cookies Policy.</a>
    </p>
    • This topic was modified 7 months, 4 weeks ago by ttaavi.
    • This topic was modified 7 months, 4 weeks ago by ttaavi.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @ttaavi,

    Greetings from CookieYes!

    We couldn’t replicate this issue in our test environment. Please make sure that you have added these changes after switching to the “Text” tab in the editor, as shown in the screenshot below:

    Thread Starter ttaavi

    (@ttaavi)

    I forgot to mention that I’m not using a WordPress plugin. Instead, I took the cookie script from the CookieYes web Cookie Consent Solution and pasted it into the header. But it should work the same way, right? I did it in the same manner, edited it as text, added custom classes, and after saving and publishing, it does not show that I have a custom class or attribute.

    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @ttaavi,

    This option is currently not supported in Webapp.

    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @ttaavi,

    This thread has been inactive for a bit, so we are going to mark it as resolved now. Please feel free to open a new thread or follow-up if you have any further questions or still need help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can I add custom attributes and classes?’ is closed to new replies.