• Resolved Panos Web

    (@siteworks)


    Hi there!

    How can we override cookie-policy-eu.php file so that we can make some customization to it?

    We tried putting it in /themes/ourtheme/plugins/…. folder but it didn’t work.

    Thanks

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Aert Hulsebos

    (@aahulsebos)

    Hi @siteworks,

    We will look into the easiest way for a full override. We are careful with editing these documents, as everything is dynamically added based on your configurations, and user preferences. Depending on your wishes, there are few other options.

    1. Edit the HTML directly, you can do this after configuration, which will unsync the policy from the wizard. https://complianz.io/editing-legal-documents/
    2. Editing the text only, which will keep the synchronization, but uses an override. https://complianz.io/changing-the-text-in-your-legal-documents/
    3. Build the policy with your own texts, or inspired by Complianz, and use shortcodes for the cookies and manage consent area. Both are synched.

    [cmplz-manage-consent]
    [cmplz-cookies]

    For full control you can also disable all CSS (including the toggles) under settings.

    For #4 as you tried, I will get back to you.

    regards Aert

    Thread Starter Panos Web

    (@siteworks)

    Hi,

    thanks for the quick reply!

    We just want to remove <i> tag in the first paragraph of cookie policy.

    'content' => '<i>' . cmplz_sprintf(_x('This Cookie Policy was last updated on %s and applies to citizens and legal permanent residents of the European Economic Area and Switzerland.', 'Legal document cookie policy', 'complianz-gdpr'), '[publish_date]') . '</i><br>',

    Is there any quick workaroud for it?

    If not, we’ll stay with solution (3) of your reply.

    Best Regards

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @siteworks,

    You can do it with the below code, which will replace the <i> with <span> (but you can change it to another element instead), place this as a new .php file in the folder /wp-content/mu-plugins/ on your website.

    override-first-sentence-greek.php

    Kind regards, Jarno

    Thread Starter Panos Web

    (@siteworks)

    Thank you so much for your support and for the plugin in general.

    Just for the record, we did it adding your provided piece of code in functions.php, cause we don’t have mu-plugin folder in our directory.

    Best regards!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Overriding cookie-policy-eu.php file’ is closed to new replies.