However, they are not located in the patterns folder inside the theme directory.
The block theme's patterns folder as seen in Bluehost file manager
Note: You may notice that the template, parts and pattern folders in your theme directory contain files not specified in theme.json, but they are still visible in the full site editor.
If you’re curious, this is because WordPress is designed to automatically recognize and use these folders based on their naming conventions and location within your theme directory.
Since theme.json is a core theme file, editing it directly on your live WordPress website carries some risks. Accidental mistakes can potentially break your theme or website.
A safer approach is to use a child theme .
A child theme inherits all the style variations and features of the parent theme (the block theme benin telemarketing data you are using), but allows you to customize things without changing the parent theme itself. That way, if the parent theme is updated, your customizations won't be overwritten.
For more information, you can read our guide on how to create a child theme in WordPress . This article shows a simple method with the Create Block Theme plugin , which will automatically generate a new theme.json file just for the child theme.
Creating a child theme with Create Block Theme plugin
To ensure a smooth editing experience and avoid any website downtime, we also recommend creating a fresh backup of your WordPress website . This way, if anything goes wrong, you can easily restore your site to its previous state.
We recommend using a plugin like Duplicator for a fast and reliable backup solution.
What to do before editing the theme.json file
-
- Posts: 138
- Joined: Sat Dec 21, 2024 6:06 am