Pinegrow Community Support Forum

Starter theme text domain


#1

Is there a way to set the text domain for the theme? Every time I export a theme then activate it “Theme Check” will output this error:

Warning: More than one text-domain is being used in this theme. This means the theme will not be compatible with ordPress.org language packs. The domains found are theagency, pg_starter

How do I update the “pg_starter” text domain in all 170 instances in 7 pages? Should’nt PineGrow automatically set the text domain to the theme slug?

Paul


#2

Hello Paul,

According to our experience with the Theme Check validation plugin, the best way to reach the right level is to set the Theme name, the theme slug AND the theme folder with the exact same name.

The development version of the Starter Theme uses the name pg_starter for these values and because we deliver a customized version of functions.php and a few other scripts in the final commercial package, we had to “hardcode” the text_domain value in these files.

This situation is absolutely not an issue if you do not plan to submit your custom theme to the WordPress repository BUT if its part of your plans, you will have to manually replace the pg_starter text_domain value with yours (same value as the theme slug/theme name/theme folder) in the following files:

functions.php located at the root of your project folder
functions-breadcrumb.php located in assets>breadcrumbs
breadcrumb.php located in assets>breadcrumbs

You can easily do this with Atom Editor by just replacing ‘pg_starter’ with ‘your_value’ in the files.

See: http://docs.pinegrow.com/starter-theme/wordpress-starter-theme-release-v1-2#wordpressorg-theme-check-validation


#3

OK, thank you for clearing that up for me.