Skip to main content

How Do I Modify My Site's Theme or Plugin?

A guide to safely modifying WordPress themes and plugins. Learn why direct file edits should be avoided and how to use child themes, hooks, and Composer effectively.

Updated today

We do not recommend modifying the files of ready-made themes or plugins directly via file editors or SSH/SFTP. When a new version of a theme or plugin is released, automatic updates will overwrite the files, causing any manual changes to be lost.

Styling Changes (CSS)

Small visual tweaks should be made via the WordPress Customizer (Appearance > Customize > Additional CSS). These styles are stored in the database and remain intact even after theme updates.

Customizing Themes and Functionality

Significant structural or functional changes should be implemented using a child theme. By using a child theme, you can modify template files (like header.php or functions.php) without risking them being overwritten when the parent theme is updated. You can read more about child themes from WordPress Developer Resources.

Pro-tip: Use Hooks (Actions and Filters)

Many plugins and themes can be customized without copying files by utilizing WordPress action and filter hooks. By adding code snippets to your child theme's functions.php or a dedicated "must-use" plugin, you can modify site behavior safely and sustainably.

Preventing Updates for Themes or Plugins

In specific cases, such as during migrations or large development projects, you might need to temporarily prevent updates.

  • Themes: You can copy the theme directory and rename it. WordPress will treat this as a unique theme, and it will no longer receive updates from the original source.

  • Plugins: It is currently not possible to disable updates for individual plugins at Seravo without disabling all automatic updates for the entire site.

  • Advanced Management (Composer): If your site utilizes Composer for dependency management, the developer is responsible for version control and running updates manually. In this case, automatic updates should usually be disabled to avoid version conflicts.

Warning! Preventing updates (e.g., by renaming directories) also stops critical security updates from being installed automatically. We always recommend using child themes or hooks as a primary method to keep your site secure and up to date.

Did this answer your question?