• Resolved cpgraphisme

    (@cpgraphisme)


    Hello,

    I would need to change some text in the cookie policy, but without stopping the synchronization.

    I tested with the PHP code indicated here:
    https://complianz.io/changing-the-text-in-your-legal-documents/
    but it only allows me to change one line of text.

    I need to delete all the text of No. 9 and simply replace it with “See our Privacy Policy” with a link to the page.

    Is it possible to do this?

    Thanks in advance 🙂

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Antonio Candela

    (@antoiub)

    Hello @cpgraphisme ,

    Thank you for reaching out.

    If you scroll a bit further down the page guide, you will see the script below, which is meant for replacing multiple strings:
    https://gist.github.com/jarno-vos/db1a71f0d007f8b6d4b543981c1f6b15

    Hope it helps!

    Thread Starter cpgraphisme

    (@cpgraphisme)

    Hello,

    thanks for your answer, I tested this but it doesn’t work for the bulleted text…

    I need to delete this whole paragraph (https://ibb.co/dKnWytM)
    + put a clickable link on “Privacy Policy”

    Can you help me a little more on these issues?

    Thanks

    Plugin Support Antonio Candela

    (@antoiub)

    Hello @cpgraphisme ,

    Can you please try this code? It will hide the bullet symbol.

    <?php
    /**
    * Replace multiple strings by adding them to the old_string and new_strings arrays
    * remove line 1 if implemented in functions.php, instead of an mu-plugin
    */
    function cmplz_edit_document_html($html){
    $old_strings = array("Cookies", "website");
    $new_strings = array("Cookies-replaced", "website-replaced");
    $html = str_replace($old_strings, $new_strings, $html);

    // hiding the bullet symbol
    $html = str_replace('<ul>', '<ul style="list-style-type: none;">', $html);

    return $html;
    }

    add_filter('cmplz_document_html', 'cmplz_edit_document_html', 10, 3);
    ?>

    Please try it and let me know.

    Thread Starter cpgraphisme

    (@cpgraphisme)

    Thanks for your feedback.
    But it only works for the first line.
    I can’t remove the text and its bullet for the following lines…

    So I stopped the synchronization and changed it to text.

    Have a nice day

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘modify cookie policy text’ is closed to new replies.