Avoid custom functionality inside your theme

Hire a WordPress Expert on Codeable
Updated On: December 18, 2022 0 Comments

Be it a custom theme or a third-party theme, a WordPress theme should only deal with the look and feel of the website.

It shouldn’t deal with the content or functionality of the website by any means.

This is to ensure that no content on your website is lost when you switch themes.

So, make sure your theme doesn’t contain:

  1. Registration of custom post types
  2. Registration of custom taxonomies
  3. Hard-coded content inside the theme’s template files

If your theme has any of these, move them to a custom plugin.

Leave a Reply

Your email address will not be published. Required fields are marked *