• Resolved semplicewebsite

    (@semplicewebsite)


    Good evening, I noticed that the consent withdrawal button cannot be inserted at the bottom of the footer and can only be inserted via shortcode on the page. I found a way to put it in the footer.php and make it work. For the community can I disclose the solution?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author christophrado

    (@christophrado)

    Sure, no worries!

    I’d recommend one of these ways:

    1) Use the do_shortcode() function if you want to hard-code the revoke button into a template part/section. This is probably the most reliable, as it will still work if the shortcode output ever changes.

    2) Write your own button/link markup and give it the id of cookie-notice-consent__revoke-button. The plugin script looks for that element, so just adding it yourself should work as well. This might break though if the plugin script ever changes.

    If you’re using a different solution, feel free to share it!

    Thread Starter semplicewebsite

    (@semplicewebsite)

    ok, thanks a lot … I’ll open a separate post. I also have to open one because the blocking of cookies doesn’t work and I don’t understand where I’m wrong

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Shortcode in footer.php’ is closed to new replies.