WordPress Custom Code

Important info about adding custom PHP or modifying theme files in WordPress

Kylen Downs avatar
Written by Kylen Downs
Updated over a week ago


If you ever find yourself in a position looking to add PHP code to your WordPress site hosted by Showit, it can very easily break your whole site.

Modifying Active PHP Files

Modifying active PHP files in WordPress can result in immediate downtime and will require development level knowledge and direct file access to revert.

We do not recommend trying to modify PHP code on your own or copy-pasting code found online. It is much easier to break your site with bad code than to try and fix your site after bad code may have broken it. Do not ever attempt to make changes to code if you are unfamiliar with PHP and WordPress coding standards. It can result in lengthy downtime for your whole site.

Showit does not provide custom WordPress development work and cannot assist with troubleshooting errors or conflicts caused by custom code.

Note: Showit does maintain daily backups of your WordPress files. However, backup points are created around midnight PST. Restoring a backup point will result in loss of data created or modified after the backup point. If custom code breaks your website, we can restore your site to a backup point prior to any custom code.

Note to Developers

Every time a site owner makes changes to their design inside the Showit App and publishes those changes, new theme files will be generated. This means that any custom code added to theme files will be overwritten. Because of this, modifying theme files directly (such as the functions.php file) will not preserve any custom code as new design updates are published by the site owner.

In general, it is best practice to never modify WordPress theme files directly, regardless of the use of Showit or a different WordPress theme.

WordPress itself advises against direct editing of theme files:

TLDR: Do not modify the functions.php file located in the Showit theme directory.

Custom code is best implemented through the use of a plugin.

Did this answer your question?