Disable Enfold Portfolio

, ,

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.

Open your functions.php file in wp-content/themes/your-enfold-child-theme/ and add this code at the end of the file:

add_action( 'after_setup_theme', 'remove_portfolio' );
function remove_portfolio() {
remove_action( 'init', 'portfolio_register' );
view raw functions.php hosted with ❤ by GitHub

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.

1 reply

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply