Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |
howto:wordpress_reset_theme [2023/05/08 19:23] – jp | howto:wordpress_reset_theme [2023/05/08 19:26] (current) – jp |
---|
- First of all login as ''admin'', and go to ''Appearance'' → ''Themes'', here select and activate some other theme (other than ''twentytwentythree''). Then delete the ''twentytwentythree'' theme, by clicking on the **Theme Details** and clicking on **Delete** in the bottom right of the theme preview. | - First of all login as ''admin'', and go to ''Appearance'' → ''Themes'', here select and activate some other theme (other than ''twentytwentythree''). Then delete the ''twentytwentythree'' theme, by clicking on the **Theme Details** and clicking on **Delete** in the bottom right of the theme preview. |
- We need to delete some of the customizations in the ''wp_options'' table. In the MySQL wordpress database: ''delete from wp_options where option_id in (select option_id from wp_options w where w.option_name like '%twentytwentythree%' or w.option_value like '%twentytwentythree%');'' | - We need to delete some of the customizations in the ''wp_options'' table. In the MySQL wordpress database: ''delete from wp_options where option_id in (select option_id from wp_options w where w.option_name like '%twentytwentythree%' or w.option_value like '%twentytwentythree%');'' |
- Get the IDs of posts in ''wp_posts'' using ''select ID from wp_posts where post_type in ('wp_template_part', 'wp_template', 'customize_changeset') or w.post_content like '%twentytwentythree%';''. Find the ''twentytwentythree'' related ones and delete those rows with a few well-aimed ''delete from wp_posts where ID = XXX;'' (replace XXX with the appropriate ID) | - Get the IDs of posts in ''wp_posts'' using ''select ID from wp_posts where post_type in ('wp_template_part', 'wp_template', 'customize_changeset') or post_content like '%twentytwentythree%';''. Find the ''twentytwentythree'' related ones and delete those rows with a few well-aimed ''delete from wp_posts where ID = XXX;'' (replace XXX with the appropriate ID) |
| - Go back in ''Appearance'' → ''Themes'' and ''Add New'' the 'old' theme again (i.e. ''twentytwentythree'') |
| |
| You should now have a clean new theme, fresh and clean as a whistle. |
| |
| |
| |