Rename a WP theme with a quick cli walk-through.
$ yarn add theme-claim --dev
$ theme-claim --help
Usage
$ theme-claim
Options
--config=<path> Path to config [Default: ./themeclaim.json]
--ignore=<path> Specify an additional file or glob to ignore
Examples
$ theme-claim --config='/build/conf.json' --ignore='**/*.ignore'
"scripts": {
"rename": "theme-claim",
}
Run the "script"
$ yarn rename
By default, the config is set up for use with an in the works starter theme.
To rename any other theme, create a themeclaim.json
and place it in the root of your theme with the following contents.
Change the data to match your current theme data exactly (this is the data you're wanting to change).
{
"from": {
"Name": "Mythic",
"Description": "An awesome starter theme for WordPress.",
"Namespace": "Mythic",
"Uri": "https://themehybrid.com/themes/mythic",
"Author": "Justin Tadlock",
"AuthorEmail": "justintadlock@gmail.com",
"AuthorUri": "https://themehybrid.com"
}
}