-
Navigate to your WordPress Project Directory
Open your terminal and navigate to the
wp-contents
directory of your WordPress project:cd ~/my-wordpress-site/wp-contents
-
Backup Existing Themes
To ensure you have a backup of your current themes, rename the
themes
directory tothemes-back
:mv themes themes-back
-
Move Demo to WordPress
Move the
astro-wordpress/demo
directory tothemes/
:mv ~/astro-wordpress/demo ~/my-wordpress-site/wp-contents/themes/
-
Update Astro Config
Change your directory to the
themes
directory and edit theastro.config.mjs
file to updatedevProxyTarget
to point to your local WordPress url:cd themes # Use your preferred text editor, e.g., nano, vim, or VSCode edit astro.config.mjs
Remember to save your changes.
-
Run Development Server
Install dependencies and run Astro dev:
npm i npm run dev
-
Activate Theme in WordPress Admin
Go to your local WordPress site's admin panel (wp-admin). Navigate to the 'Appearance' > 'Themes' and activate the Demo theme.
-
Notifications
You must be signed in to change notification settings - Fork 0
Develop wordpress theme with Astro like it's 2024
License
sijad/astro-wordpress
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Develop wordpress theme with Astro like it's 2024
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published