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!
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
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.
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