Nicola Mustone

Happiness Lead @ Automattic



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.

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:

<?php
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.

Advertisements

Subscribe to This Blog

Receive new articles from this blog directly in your inbox! No spam guaranteed!

Join 651 other subscribers

Contribute to Improving This Blog

Did you enjoy this article? Was it helpful? Contribute to help me write more articles! The funds collected from this blog are reinvested directly into improving my skills or the blog so that I can provide more and better content!

One-Time
Monthly
Yearly

Make a one-time donation

Make a monthly donation

Make a yearly donation

Choose an amount

€5.00
€15.00
€100.00
€5.00
€15.00
€100.00
€5.00
€15.00
€100.00

Or enter a custom amount


Your contribution is appreciated.

Your contribution is appreciated.

Your contribution is appreciated.

DonateDonate monthlyDonate yearly
Advertisements

More Posts That You Might Like…


One response to “Disable Enfold Portfolio”

  1. Thanks for sharing!

Leave a Reply

Advertisements

Categories

Newsletter

Receive new articles from this blog directly in your inbox!

No spam guaranteed!

Join 651 other subscribers

About The Author

Hi, I’m Nico! Support Lead at Automattic, championing WordPress.com & WooCommerce. Off-duty, I’m at Elemental Beacon, leading epic D&D adventures. Let’s connect, whether it’s about WordPress or a quest!

Advertisements

Don't Miss a Thing!

Receive new articles from this blog directly in your inbox!

No spam guaranteed!

Join 651 other subscribers

Continue Reading

%d bloggers like this: