Where can I discover my current theme's text domain for use with translation (GetText)?

1 Answer 1


Your theme's text domain is defined in your Theme Header in style.css. For example:

 * Plugin Name: My Plugin
 * Author: Otto
 * Text Domain: my-plugin

The text domain should match your theme's 'slug' (ie. the name of the folder where your theme is stored).

Read more: https://codex.wordpress.org/I18n_for_WordPress_Developers#Text_Domains


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.