• Resolved mvpalves

    (@mvpalves)


    Hi!
    I’m trying to disable my page from being translated, but it’s not working…

    I’ve added the URL in the Do not translate certain paths section, but didn’t work either.
    I tried this PHP:

    add_filter( 'trp_no_translate_selectors', 'trpc_no_stranslate_selectors', 10, 2);
    function trpc_no_stranslate_selectors($selectors_array, $language){
        $selectors_array[] = '.do_not_translate_css_class';
        $selectors_array[] = '#do_not_translate_css_id';
        return $selectors_array;
    }

    But it still didn’t work. Not sure why this is happening.

    My URL I inserted it manually in the /es/ category and I translated it manually as well. So I wanted to disable the translation there. But even adding the PHP and the path the translate press insists in translating the page.

    The original content of the page is spanish, but the Author BOX should be in Portuguese and the page recomendation also in Portuguese.

    How can I disable translatepress in this page?

    Thanks!

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

Viewing 1 replies (of 1 total)
  • Plugin Support Anca

    (@ancavictoria)

    Hello,

    The page needs to be excluded from TranslatePress Advanced Settings -> Exclude strings -> Do not translate certain paths -> Exclude Paths From Translation.

    To be properly excluded from translation, only the path of the page in the default language needs to be added, not the entire URL and not including the language code.

    For example, you need to add: /como-pueden-ayudar-las-aplicaciones-en-el-cuidado-de-mis-plantas/ and this way it will be excluded from translation, and the page will appear only in the default language.

    Let me know how this goes.

    Kind Regards,

    Anca

Viewing 1 replies (of 1 total)
  • The topic ‘Disable pages from translating not working’ is closed to new replies.