Entry point projects for Deodar Projects. Blocks coming eventually.
Starting points of Deodar Projects
npx degit https://github.com/brockcataldi/deodar-examples/tree/main/starters/deodar-base-theme your-theme-nameAfter cloning the theme starter, follow these steps:
-
Update WordPress theme header in
style.css:- Update
Theme Name,Theme URI,Text Domain,Author, andAuthor URIto match your project
- Update
-
Rename function prefix in
functions.php:- Replace all instances of
dbt(Deodar Base Theme) with your own prefix (e.g.,my_theme_orabc_) - This affects the function name
dbt_deodarand should be unique to avoid conflicts
- Replace all instances of
-
Customize the configuration:
- Update menu names, styles, scripts, and theme supports in the
dbt_deodarfunction (or your renamed function) - Set
productiontotruewhen deploying to production
- Update menu names, styles, scripts, and theme supports in the
npx degit https://github.com/brockcataldi/deodar-examples/tree/main/starters/deodar-base-plugin your-plugin-nameAfter cloning the plugin starter, follow these steps:
-
Rename the entry point file:
- Rename
deodar-base-plugin.phpto match your parent directory name (e.g., if your directory ismy-plugin, rename tomy-plugin.php) - This file serves as the main plugin entry point
- Rename
-
Update WordPress plugin header in the entry point file:
- Update
Plugin Name,Plugin URI,Description,Author,Author URI, andText Domainto match your project
- Update
-
Rename function prefix in the entry point file:
- Replace all instances of
dbp(Deodar Base Plugin) with your own prefix (e.g.,my_plugin_orxyz_) - This affects the function name
dbp_deodarand should be unique to avoid conflicts
- Replace all instances of
-
Customize the configuration:
- Update menu names, styles, scripts, and supports in the
dbp_deodarfunction (or your renamed function) - Set
productiontotruewhen deploying to production
- Update menu names, styles, scripts, and supports in the