Question

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

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange
scroll top