When modifying a WordPress theme, always use a child theme. It ensures your custom code and styles won't be lost when the parent theme gets updated — preserving your work and saving future headaches.