
The general advice given to users who want to make simple edits to a theme without losing them is to create a child theme. This involves creating a directory, CSS file, a functions.php file, and uploading them to the webserver via WordPress or FTP. Users must also make sure the child theme references the parent theme correctly in order to establish the proper inheritance. This can be a complicated process for a lot of people but thanks to a new feature proposal for WordPress 4.7, the days of going through this process may soon be over.
The Benefits of Adding a CSS Editor to the Customizer
The proposal suggests adding a CSS editor to the customizer which offers a number of benefits. Users can live preview changes before they’re applied and see how they’ll appear on mobile devices. Instead of editing files directly, changes are stored in a Custom Post Type for each theme and override theme styles.
Related projects such as customize changesets (#30937) and revisions for customizer settings (#31089) will allow for future enhancements. Adding the editor will also lay the groundwork for possibly removing the Theme file editor from core at some point in the future.
Here’s
Source: https://managewp.org/articles/13604/the-days-of-creating-child-themes-for-simple-css-changes-may-soon-be-over
source https://williechiu40.wordpress.com/2016/10/13/the-days-of-creating-child-themes-for-simple-css-changes-may-soon-be-over/
No comments:
Post a Comment