Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor jarnovos

    (@jarnovos)

    Hi @andrewmrichards,

    The third link in the Cookie Banner (the one that currently points to the homepage) refers to the Imprint document. If you set the Imprint document to “No document” under Complianz > Wizard > General > Documents, the link will disappear from your Cookie Banner.

    Kind regards,
    Jarno

    Thread Starter andrewmrichards

    (@andrewmrichards)

    Hi
    Thanks for your response – impressively quick!!
    Unfortunately, I’ve already set the Imprint setting to No Document:
    https://theitservice.co.uk/wp-content/uploads/2022/07/Screenshot-04_07_2022-13_06_55.png

    Is there something else I can look at or change?

    Thanks
    Andrew

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @andrewmrichards,

    In that case I expect this to be related to caching, as this {title} element does not appear in the Cookie Banner when visiting the website in question using the below URL (which shows you a version of the site prior to WP Rocket’s optimizations):

    https://theitservice.co.uk/?nowprocket

    So I assume that clearing the WP Rocket cache will resolve the issue. If not, you can determine the cause by disabling optimizations in the WP Rocket plugin one-by-one, and checking the front-end after disabling a specific feature, to see if the {title} link has disappeared upon doing so.

    Kind regards,
    Jarno

    Thread Starter andrewmrichards

    (@andrewmrichards)

    Okay – update.

    If I open the page in a normal browser window, using MS Edge (which is my default browser), it shows correctly, without that {title} link.

    However, if I open the page in Private mode, or in Firefox or Chrome, which I use less often, the {title} link is back.

    I’ve just tried setting it to “No Document” again, and saving again, but no luck…

    Thanks
    Andrew

    Thread Starter andrewmrichards

    (@andrewmrichards)

    Thank you for your suggestions.

    I’ve found that removing the setting to “Remove unused CSS” in WP Rocket resolves this issue. However, I’m keen to retain the site performance benefit that this offers. If I turn on this setting, there’s an option to “Specify CSS filenames, IDs or classes that should not be removed”.

    Are there specific filenames, IDs or classes that I could list here to ensure that the Complianz-related CSS stays in place?

    Thanks a lot
    Andrew

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @andrewmrichards,

    It concerns the below line of inline CSS that is being removed, which causes elements with this class to become visible.

    .cmplz-hidden{display:none !important;}

    While this might already work by inserting cmplz-hidden as the class to exclude in the exclusion field, judging by WP Rocket’s documentation on this feature, it seems that you’ll need to use the helper plugin they provide in order to preserve a specific inline style.

    You can download the helper plugin from the attached WP Rocket documentation page, and replace line 28 in the ‘wp-rocket-exclude-inline-css-rucss’ PHP file with the below:

    $inline_exclusions[] = ' .cmplz-hidden';

    Then follow the steps provided in their documentation to activate the helper plugin. That should preserve the inline style and resolve the {title} link on your Cookie Banner.

    Kind regards,
    Jarno

    Thread Starter andrewmrichards

    (@andrewmrichards)

    Thanks for your help with this – much appreciated.

    Andrew

    Plugin Contributor Aert Hulsebos

    (@aahulsebos)

    Great!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘The cookie banner shows {title} as a link’ is closed to new replies.