Creating a WordPress Child Theme based on a Block Theme like Twenty Twenty Three only requires two files style.css and theme.json
Creating a Child Theme based on a Block Theme like Twenty Twenty Three only requires two files style.css and theme.json. Beyond this, a developer can include functions.php for additional customization and screenshot.php for the theme’s thumbnail. Template Hierarchy still applies but .php files provide a fallback to .html template files.
This process requires a remote webhost running on a Linux distribution such as Ubuntu. Before you begin you’ll need the following information about your server.
Open a new terminal window and run the ssh command above.
Server Side Backup storage
Once logged in navigate to a new “Current Directory” to a backup folder of your choosing and create a folder to store your backup. I like to use today’s date.
All commands below are performed with superuser / root access
the mysqldump command above will export your database into wordpress.bak.sql
ls
wordpress.bak.sql
ls will display your exported database file
tar czvf wordpress.tar.gz wordpress.bak.sql ../../html/wp-content/ ../../html/wp-config.php ../../html/.htaccess
tar is a fun throwback from the days of “tape archives.”
Effectively happening is the creation of an archive file named named wordpress.tar.gz which includes the database, wp-config.php, .htaccess and everything in the wp-content folder. You may include others if you like.
cp wordpress.tar.gz /var/www/html/
Move the archive to a public folder and download.
Download to your computer
wget your-domain.com/wordpress.tar.gz
On your local machine open an new terminal window and use wget to download the archive.
Remove the original backup from the server
Be careful using the rm command. Any files removed can’t be recovered. The -i flag will require a yes or no confirmation.
That’s it, admittedly the process takes a little practice. However, for small to medium sized sites a person could run thorough the process in a matter of minutes.