Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #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

    #1425298

    Hey 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,
    Mike

    #1425418

    Thanks 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.
    #1425425

    Or 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’ ) );

    #1425468

    Hi,
    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

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.