Plugin Support
Iarina
(@iarinadasdi)
Hi @fakhrur,
Thank you for reaching out to us!
This can be done by adding a small custom code that hides the TranslatePress “Translate Page” button from the WordPress admin toolbar:
add_action('admin_head', function() {
echo '<style>#trp-link-id { display: none; }</style>';
});
- Install this plugin via FTP (copy it inside wp-content/plugins) or create a zip archive with it and install it via the WordPress plugin upload functionality.
Note: It is recommended to create a database backup before adding the custom code to the website.
Let me know how it goes.
can i place without empty plugin? i am using child theme, thanks
Plugin Support
Iarina
(@iarinadasdi)
Hi,
Yes, it should work fine to add that code directly into the child theme’s functions.php file. That will work the same as adding it via a small plugin.
The reason I suggested the plugin approach is simply persistence: when a theme (or child theme) is updated or replaced, the functions.php file can be overwritten and the code would need to be added again. With a standalone plugin it remains unaffected.