Viewing 26 posts - 1 through 26 (of 26 total)
  • Author
    Posts
  • #1484733

    WP Rocket is installed on my client’s site and it’s causing the theme included Cookie Consent bar to not display.

    Can you please provide the JS file and path for the Cookie Consent bar to exclude from the WP Rocket settings?

    Thanks!

    #1484807

    Hey krisknap,

    Thank you for the inquiry.

    Have you tried to toggle or temporarily disable the Enfold > Performance > File Compression settings?
    Please provide the site URL and login details in the private field so we can check the issue further.

    The script below is responsible for the cookie consent behavior and functions.

    — enfold/js/avia-snippet-cookieconsent.min.js
    — enfold/js/avia-snippet-cookieconsent.js

    Best regards,
    Ismael

    #1486611

    Adding the below file paths to the “Excluded” files for the JS Delay and JS Deferred in the WP Rocket settings did not work.

    — enfold/js/avia-snippet-cookieconsent.min.js
    — enfold/js/avia-snippet-cookieconsent.js

    I will need to clone the live site to staging to test disabling the Enfold > Performance > File Compression settings. If I try that and it doesn’t work, I will provide temp login details for staging so you can troubleshoot.

    Thanks!

    #1486626

    Hi,
    Please also note that some browser “AD Blockers” also block the cookie consent, perhaps that is your issue.

    Best regards,
    Mike

    #1486888
    This reply has been marked as private.
    #1486906

    Hi,

    Thank you for the update.

    The cookie consent wrap is hidden on both sites when we checked. The browser seems to be creating a css rule that hides the cookie consent elements.

    .avia-cookie-consent-wrap {
        display: none !important;
    }
    

    We tried overriding it but it doesn’t work.

    .avia-cookie-consent-wrap {
        display: block !important;
    }
    

    The issue doesn’t occur on our own installation, so it’s probably caused by a plugin or a custom modification.

    (moved to private field)

    We may need to login to the site to further investigate the issue.

    Best regards,
    Ismael

    #1486989
    This reply has been marked as private.
    #1487056

    Hi,

    We have moved the screenshot to the private field. Please let us know once the login details are available.

    Best regards,
    Ismael

    #1487074
    This reply has been marked as private.
    #1487093

    Hi,

    Would you mind providing the login details to the dev site as well so we can check whether the WP Rocket settings in combination with another plugin are causing the issue? We also recommend reaching out to the plugin developers, as they might have additional insight into why the issue occurs when WP Rocket is enabled.

    Best regards,
    Ismael

    #1487122
    This reply has been marked as private.
    #1487132
    This reply has been marked as private.
    #1487201
    This reply has been marked as private.
    #1487277

    Hi,

    Sorry for the delay. The private field is only visible to you and the moderators. We tried logging into the dev site using the token, but it just redirects us to the home page. Please provide a new login token.

    Best regards,
    Ismael

    #1487292
    This reply has been marked as private.
    #1487320

    Hi,

    There is no option to set the whole reply as private, if we’re not mistaken. Would you mind providing a screenshot of the toggle?

    Please use the same link I sent previously for the development site.

    The login token link has expired.

    Best regards,
    Ismael

    #1487342
    This reply has been marked as private.
    #1487367

    Hi,

    Are you using the form here? https://kriesi.at/support/forum/enfold/#new-post

    We are not seeing the same checkbox there. All content in the private field is only visible to the moderators and the original poster.

    View post on imgur.com

    You can use platforms like Savvyify, Imgur, or Dropbox to upload and share the screenshot.

    Best regards,
    Ismael

    #1487390
    This reply has been marked as private.
    #1487405

    Hi,

    The cookie consent still doesn’t display even after disabling WP Rocket and all other plugins on the site. What happens if you remove or temporarily disable the header.php, footer.php, and functions.php files in the child theme? Please provide the FTP details so we can modify the files if needed.

    Best regards,
    Ismael

    #1487747
    This reply has been marked as private.
    #1487870

    Hi,

    This is what we see when we initially load the dev page — no cookie consent container:

    View post on imgur.com

    We recommend completely disabling the current privacy cookie feature and use one of the following plugin instead:

    https://wordpress.org/plugins/complianz-gdpr/
    https://wordpress.org/plugins/gdpr-cookie-consent/
    https://wordpress.org/plugins/cookie-notice/

    For more information about the issue, please contact the WP Rocket team.

    Best regards,
    Ismael

    #1487956
    This reply has been marked as private.
    #1488357
    This reply has been marked as private.
    #1488393

    Hi,

    The cookie banner relies solely on the essential cookies set by the theme. The behavior and display of the cookie consent container change depending on whether these essential cookies (e.g aviaCookieConsent, aviaPrivacyMustOptInSetting) are set. However, in your installation, WP Rocket adds custom non-editable styles that permanently hide the privacy cookie. We recommend reaching out to the plugin developers for more info about this.

    You can find the functions that control the cookie behavior in the enfold/js/avia-snippet-cookieconsent.js file.

    Best regards,
    Ismael

    #1489164
    This reply has been marked as private.
Viewing 26 posts - 1 through 26 (of 26 total)
  • The topic ‘What is the JS file (and path) for the theme included “Cookie Consent” bar?’ is closed to new replies.