Disable pages from translating not working
-
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]
- The topic ‘Disable pages from translating not working’ is closed to new replies.