Skip to content

Instantly share code, notes, and snippets.

View tonai126's full-sized avatar

Antonio Candela tonai126

View GitHub Profile
@tonai126
tonai126 / floating-icon-with-svg-support-css-only.css
Last active May 23, 2025 11:14
floating-icon-with-svg-support-css-only
#cmplz-manage-consent .cmplz-manage-consent {
width: 50px !important;
height: 50px !important;
border-radius: 50% !important;
background-color: white !important; /* change color */
background-image: url("https://your-site.com/path-to-your-icon.svg") !important; /* use your .svg path*/
background-repeat: no-repeat !important;
background-position: center !important;
background-size: 50% !important;
bottom: 5% !important;
@tonai126
tonai126 / floating-widget-new.css
Last active December 5, 2025 08:47
floating-widget-new.css
/* CSS Only solution, Same DIV needs !important */
#cmplz-manage-consent .cmplz-manage-consent {
width: 50px !important;
height: 50px !important;
border-radius: 50% !important;
background: #333 !important;
color: transparent !important;
display: flex !important;
align-items: center !important;
@tonai126
tonai126 / redirect-on-deny.php
Last active August 5, 2025 13:35
Redirects the user to a specific URL after clicking "Deny" on the Complianz cookie banner.
<?php
/**
* Plugin Name: Complianz Deny Redirect
* Description: Redirects the user to a specific URL after clicking "Deny" on the Complianz cookie banner.
* Author: Complianz Support
* Version: 1.0
* Replace {your-domain} with the URL you want to redirect to.
* Make sure to include https://, otherwise the redirect won't work.
*/
@tonai126
tonai126 / cmplz-deny-inside-preferences.php
Created August 5, 2025 15:00
Hides the default "Deny" button from the main banner and moves it inside the preferences section
<?php
/**
* Plugin Name: Complianz - Move "Deny" button inside Preferences modal
* Description: Hides the default "Deny" button from the main banner and moves it inside the preferences section.
* Version: 1.5
* Author: Complianz Support
*/
add_action('wp_footer', function () {
?>
@tonai126
tonai126 / impressum_snippet.js
Created October 1, 2025 14:02
impressum - name change script
<script>
// Wait for DOM to be ready
document.addEventListener('DOMContentLoaded', function() {
const impressumLink = document.querySelector('.cmplz-documents.cmplz-links .cmplz-link.impressum');
if (impressumLink) {
impressumLink.textContent = 'text'; // Change the text inside the link
}
});
<script>
// Wait for DOM to be ready
document.addEventListener('DOMContentLoaded', function() {
const privacystatementLink = document.querySelector('.cmplz-documents.cmplz-links .cmplz-link.privacy-statement');
if (privacystatementLink) {
privacystatementLink.textContent = 'your_text'; // Change the text inside the link
}
const cookiestatementLink = document.querySelector('.cmplz-documents.cmplz-links .cmplz-link.cookie-statement');
@tonai126
tonai126 / cmplz-links-new_tab.js
Created October 10, 2025 15:25
opens the cmplz-links in a new tab
<?php
/**
* Ultimate Maps Integration for Complianz GDPR
*/
defined( 'ABSPATH' ) || die( 'You do not have access to this page!' );
/**
* Register Ultimate Maps scripts with Complianz.
*