How can I delete the consent popup from wordpress files?

42 views Asked by At

Wordpress site

I recently took administration of the website and I cannot find out how to delete the following consent popup at the screenshot of this url: https://ibb.co/CWYwMh8. There is no plugin and I cannot find any tag at the header or footer. I checked at functions as well.

I would appreciate if anyone knows how to delete it.

Regards, Labros

I tried to locate the code with the help of the plugin: WP String Locator, but cannot find it.

1

There are 1 answers

0
Shawn On

Refer the code below to click on Consent button using Python Selenium.

import time
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC

driver = webdriver.Chrome()
driver.maximize_window()
driver.get('https://nikosantoniadis.tv/')

# Create a wait object with 10s wait time
wait = WebDriverWait(driver,10)

# Locate the consent button and click on it
consent_btn = wait.until(EC.element_to_be_clickable((By.XPATH, "//button[@class='fc-button fc-cta-consent fc-primary-button']")))
consent_btn.click()
time.sleep(10)