Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make a helper script for theme renaming #1564

Open
Adomo-Software opened this issue Sep 2, 2024 · 0 comments
Open

Make a helper script for theme renaming #1564

Adomo-Software opened this issue Sep 2, 2024 · 0 comments

Comments

@Adomo-Software
Copy link

  1. Search for '_s' (inside single quotations) to capture the text domain and replace with: 'megatherium-is-awesome'.
  2. Search for s to capture all the functions names and replace with: megatherium_is_awesome_.
  3. Search for Text Domain: _s in style.css and replace with: Text Domain: megatherium-is-awesome.
  4. Search for _s (with a space before it) to capture DocBlocks and replace with: Megatherium_is_Awesome.
  5. Search for _s- to capture prefixed handles and replace with: megatherium-is-awesome-.
  6. Search for S (in uppercase) to capture constants and replace with: MEGATHERIUM_IS_AWESOME_.

Its good there there is instructions for this, but wouldn't it be more convenient of we had a script that did that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant