Skip to content

m-e-h/theme-claim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Theme Claim

Rename a WP theme with a quick cli walk-through.

Version

Install

$ yarn add theme-claim --dev

Usage

In a terminal

$ 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'

Or in a package.json script

"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"
	}
}

About

Rename a WP theme with a quick cli walk-through.

Resources

License

Stars

Watchers

Forks

Packages

No packages published