Do you use Enfold on your WordPress site? It’s a good WordPress theme, old one, but still one of the best sellers on ThemeForest.
I recently moved to it for my blog as well, but I really can’t stand that I cannot easily disable features that I do not need, like the Portfolio post type.
The developers provided a way to disable it via code though.
Before implementing any code changes, always ensure your site is backed up. This will help you restore things in case of unforeseen errors. I recommend using Jetpack Backup for real-time backups and one-click restores.
Open your functions.php file in wp-content/themes/your-enfold-child-theme/ and add this code at the end of the file:
If you prefer plugins instead you can download one down here.
Download “Disable Enfold Portfolio”disable-enfold-portfolio.zip – Downloaded 473 times – 1.23 KB
I prefer the plugin version, and that’s what I use on this blog. The reason is simple: if I decide to enable the Portfolio again it’s only a matter of a few clicks to disable and delete the plugin, instead of making changes to the code again.