• Resolved MKW

    (@vannimakk)


    Hi
    I would like to change the address of the link in the cookie banner.
    By default it points to the cookie-policy-ue page, instead I would like it to point to the Privacy policy, or in any case a personalized address.
    I have looked for specific functions in the configuration but I have not found it.
    How can I get it?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Leon Wimmenhoeve

    (@leonwimmenhoeve)

    Hi @vannimakk,

    The cookie banner ‘read more’ link will direct to the page selected in the wizard, under General -> documents. You can select to generate a Cookie Policy, or direct to a different page.

    As it is a legal requirement to place a link to a Cookie Policy on the Cookie Banner, the plugin directs to the Complianz generated Policy, if you enabled the document. If you want to generate the Complianz Cookie Policy, but still want to change the link on the banner, please use this filter and add it to your site as a MU-plugin:

    /**
    * @param array $output
    * @return array $output
    */
    function cmplz_edit_cookie_settings($output){
    $output['readmore_url']['eu'] = "https://yoursite.com/xxxx/";
    
    return $output;
    }
    add_filter('cmplz_cookie_settings', 'cmplz_edit_cookie_settings’);

    For more information about the filter, please refer to this article:
    https://complianz.io/changing-the-read-more-url-on-the-cookie-banner/

    For more information and instructions on MU-plugins, please read:
    https://complianz.io/adding-filters-with-mu-plugins-quick-easy/

    If you have configured Complianz for the US this won’t be necessary, as the US banner contains a link to the Privacy Statement by default.

    Please let me know if you need further assistance.

    Kind regards,
    Leon

    Thread Starter MKW

    (@vannimakk)

    Hi Leon,

    excellent!
    I want to inform you anyway, I made a copy and paste and I had a very small ASCII encoding problem caused by the wp theme editor. The final syntax returns an error on the line …
    add_filter (‘cmplz_cookie_settings’, ‘cmplz_edit_cookie_settings’);
    The apostrophe and the closing quotation mark of only: …_ settings’ are confused;
    I just typed the same key again. Resolved.

    Thank you so much for your time and speed.
    Kind regards.

    Vanni

    Plugin Contributor Leon Wimmenhoeve

    (@leonwimmenhoeve)

    @vannimakk Thank you for letting me know. We’ve had that once before.

    Glad to hear you fixed it already.

    Good luck with configuring Complianz. We’d be grateful if you would share your experiences by leaving us a review.

    Thanks in advance.

    Kind regards,
    Leon

    Thread Starter MKW

    (@vannimakk)

    ..sure! Thanks a lot!

    Regards
    Vanni

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Link Read More in banner cookie’ is closed to new replies.