• Resolved supportdelfino

    (@supportdelfino)


    Hi and thanks for your plugin!
    I would like the Quick Button (bottom left) to be visible only on 1 page and remain hidden on all the others: how can I do it?

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @supportdelfino

    Greetings from CookieYes!

    To make the revisit icon visible on just one page, please try the following custom script:

    <script>
    if (window.location.pathname !== '/
    your-page-slug') {
    const cky_style = document.createElement('style');
    cky_style.innerHTML =.cky-btn-revisit-wrapper{display: none !important;};
    document.head.appendChild(cky_style);
    }
    </script>

    Replace your-page-slug with the specific slug of the page where you’d like the revisit icon to be visible. This will hide the button on all other pages.

    Thread Starter supportdelfino

    (@supportdelfino)

    First of all, thank you for your reply!

    Should I leave the selector in “Revisit Consent Button” (Content&Colors/Cookie Banner) disabled or enabled?

    And then how do I put this script: is an html box in the page enough or do I need a plugin like “snippet code”?

    Thanks again

    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @supportdelfino

    Please ensure the “Revisit Consent Button” is enabled.

    You can add the script to your active theme’s header.php file or use a third-party plugin that allows you to insert scripts into the <head> section.

    In the code provided previously, please add a backtick ` before .cky-btn-revisit-wrapper and after !important;} to ensure it functions correctly. It seems WordPress may have removed the backtick from my previous response.

    Thread Starter supportdelfino

    (@supportdelfino)

    Thank you Sir.

    I’ve tried this but it doesn’t work (https://ibb.co/m95S7jx)

    Am I doing something wrong?

    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @supportdelfino

    Please share the site URL where you have implemented this.

    Thread Starter supportdelfino

    (@supportdelfino)

    Yes: https://7i.se/iD
    This is my test environment website.
    I want it to appear only on the privacy page and not on the rest of the site: thanks!

    Plugin Support CookieYes Team

    (@cookieyesteam)

    Please find the modified code here:

    <script>
    if (window.location.pathname !== '/sito2/privacy/') {
    const cky_style = document.createElement('style');
    cky_style.innerHTML =
    .cky-btn-revisit-wrapper{display: none !important;};
    document.head.appendChild(cky_style);
    }
    </script>
    Thread Starter supportdelfino

    (@supportdelfino)

    Hi Sir. I try here (https://ibb.co/rZZPmfZ) but it doesn’t work… possible that I wrong something?

    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @supportdelfino

    Please add the code to the Head itself. And also, don’t miss the backtick.

    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @supportdelfino

    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.

    Thread Starter supportdelfino

    (@supportdelfino)

    Hi Sir. I’ve tried in any way (https://ibb.co/cwF51wd) but it doesn’t work :'(
    https://7i.se/4a
    Is it all fine, right? How can I fix only this thing? Thanks

    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @supportdelfino

    You have not added the backtick?`?before?.cky-btn-revisit-wrapper?and after?!important;}

    Thread Starter supportdelfino

    (@supportdelfino)

    Yes: sorry, now it works! Thank you so much Sir! I really appreciate your support!

Viewing 13 replies - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.