Services

Services

We build
high-quality websites
.

We are experts in creating websites that resonate with and convert

Let's work together!

Get a free consultation with our experts

About us

Why us?

Behind every great website is a
great team
.

We have built 150+ websites for marketers and global brands.

Elementor and WebToffee logos on a pastel gradient background

Guide

How to Revisit Consent Without the Floating Button in the WebToffee GDPR Cookie Consent Plugin

Table of Contents

Replace WebToffee’s floating consent button with your own WordPress menu link or Elementor button using the wcc-preference-btn class.

Visitors can revisit cookie consent in the WebToffee GDPR Cookie Consent plugin without using the standard floating button on your website.

You can use your own Cookie settings button or link instead — whether it’s a regular WordPress menu item or an element built in Elementor.

Revisit Cookie Consent with One CSS Class

Add the following class to the element you want visitors to click:

wcc-preference-btn

The plugin handles the click and reopens the consent interface. No custom JavaScript is needed.

Important: The CSS selector is .wcc-preference-btn, but in a CSS Classes field, enter wcc-preference-btn without the dot.

Option 1: A WordPress Menu Item

  1. Go to Appearance → Menus and select your menu.
  2. Add a Custom Link with # as the URL and Cookie settings as the link text.
  3. Open Screen Options at the top and enable CSS Classes.
  4. Expand the menu item, enter wcc-preference-btn in CSS Classes (optional), and save the menu.

Option 2: An Elementor Element

Select your button or another element in Elementor, then go to:

Advanced → CSS Classes

Enter wcc-preference-btn and save your changes. For a Button widget, use # in the Link field so it doesn’t navigate to another page.

Replace the Floating Button

Once your custom trigger works, disable the floating Revisit consent button in the plugin’s cookie banner settings:

wp-admin -> Cookie Consent -> Content & Colors -> Revisit consent icon

Test on the live page after accepting or rejecting cookies, and confirm that your link lets you reopen and change your preferences.

💡 Tip: Put the link in a site-wide footer menu so visitors can always find it. Prefer a real button or link that can also be reached and activated with a keyboard.

Picture of Roman Vlčák

Roman Vlčák

An incorrigible perfectionist passionate about pixel-perfect work, who constantly strives to deliver the highest possible quality. Outside of Webgate, he is a caring husband and father to his young son. In his free time, he likes traveling with his family and doing puzzles.

Senior WordPress Developer • Co-founder

Share this artcle

Let's work together!

Get a free consultation with our experts

Subscribe to our quarterly newsletter and receive latest insights.

Topics: Improving B2B websites, AI tools in web development, UX/UI, website marketing trends etc.

By submitting this form you agree to the processing of your personal data according to our .

Contact

Let's work together!

Get a free consulting call with our experts

Book a call with
Webgate founders

Thank you for your interest!

We will contact you soon.