-
AuthorPosts
-
November 10, 2023 at 12:47 pm #1425222
Hi all – I have changed some text in helper-privacy.php so that the privacy policy link in the cookie modal does clash with Google’s recaptcha privacy policy link used in contact forms for accessibility purposes (ie – two links to two different places with the same name is frowned upon!).
This works fine but I want to add include/helper-privacy.php to my child theme so that it’s not overwritten in future.
The files have been added but what is the code I need to add to functions.php to ‘enqueue’ it?
Thanks in advance
Dominic
November 11, 2023 at 1:31 pm #1425298Hey domchocolate,
Thanks for your question, but unfortunately there is not a way to add any of the files in the /include/ directory to a child theme.Best regards,
MikeNovember 13, 2023 at 11:05 am #1425418Thanks Mike – do you know if it can be done with a translate plug-in? Or do the only work with.po/.mo
Maybe this…https://en-gb.wordpress.org/plugins/say-what/
Dominic
- This reply was modified 1 year, 1 month ago by domchocolate.
November 13, 2023 at 11:12 am #1425425Or is there a way to change the language that’s inserted when this short code is used – essentially I want this – see “Council privacy policy”
av_privacy_class::$default_privacy_message = apply_filters( 'avf_default_privacy_message', __( 'I agree to the terms and conditions laid out in the [av_privacy_link]Privacy Policy[/av_privacy_link]', 'avia_framework' ) ); ' to read
av_privacy_class::$default_privacy_message = apply_filters( ‘avf_default_privacy_message’, __( ‘I agree to the terms and conditions laid out in the [av_privacy_link]Council privacy policy[/av_privacy_link]‘, ‘avia_framework’ ) );
‘November 13, 2023 at 6:20 pm #1425468Hi,
Typically the say what plugin works good, I would recommend using it or some javascript, which may use less resources than a plugin for just one line of text.
Perhaps something like this:var changeMasonryAuthor = document.querySelector('html[lang="it-IT"] .av-masonry-author.meta-color.author'); if (!!changeMasonryAuthor) { var search = "da "; var replacement = "A cura di "; document.body.innerHTML = document.body.innerHTML.split(search).join(replacement) }
You will need to adjust to suit your needs.
Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.