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 not found]

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.


More Posts That You Might Like…


One response to “Disable Enfold Portfolio”

  1. Thanks for sharing!

Leave a Reply

Categories

Newsletter

Receive new articles from this blog directly in your inbox!

No spam guaranteed!

Blog at WordPress.com.

%d bloggers like this: