Tagged: admin menu, portfolio items
I want to change Portfolio Items’ icon from the generic pushpin to the folder icon, f322. How do I make this change in the Child Theme of Enfold? I don’t want the change to get overwritten. Thanks
Hey!
Try adding this to your child theme functions.php file:
add_filter('avf_portfolio_cpt_args', function($args) {
$args['menu_icon'] = 'dashicons-portfolio';
return $args;
});
Cheers!
Josue
Oh you TOTALLY rock! Thanks so much! That’s just about driven me two clicks from crazy. But I tried exactly what you said and it worked.
Another question for you. How do you make the “Install Plugins” submenu under “Appearance” in the main WP admin menu disappear? It appears to be tied somehow to the LayerSlider WP plugin that comes with Enfold. I’ve looked at this for 2 days and I can’t figure out how to get rid of it. It’s a duplication of what’s already under the Plugins menu. Thanks
Hi!
This will do it:
add_action( 'after_setup_theme', function(){
remove_action( 'tgmpa_register', 'avia_register_required_plugins' );
});
Regards,
Josue
Thank you again! Worked like a charm.
You are welcome, glad to help :)
Regards,
Josue