You may from time to time want to change how Five3 performs a certain task, or add something extra to Five3. There are two methods to extend Five3 – child themes & code snippets.
Child Themes
If you want to make a large number of changes or additions, the best option is to create a child theme of Five3. To learn how to create a child theme, refer to the WordPress codex’s excellent article on creating a child theme.
Code Snippets
If you only want to add or change a single function, you can create a separate file for custom code without modifying core Five3 files.
To add code snippets:
- Create a file in the five3.me directory named
custom-functions.php
- Add your code snippets to this file.
- Voilà, Five3 will include this file automatically.
Five3 will load the custom-functions.php file before its own functions.php. You can override core Five3 functions without editing a Five3 file by including a function by the same name in your custom-functions.php file.
When you upgrade Five3, remember to back-up your custom-functions.php to make sure you do not lose it.
Custom CSS
To add custom CSS to Five3, you can either use the WordPress.com Custom CSS plugin or add a new custom.css file under Five3′s /css/ directory, for example /five3/css/custom.css.
The WordPress.com Custom CSS plugin is prevents the possibility of having your custom.css file being lost when upgrading Five3; however, the plugin does not permit all CSS selectors and styles.