Enfold – Theme Overrides

WordPress - Enfold Theme Functions PHP

Snippet Overview

Enfold – Theme Overrides

These are a handful of functions for the Enfold theme that override default behaviors of the theme. Please note that many of these have already been integrated into the theme options panel so check there first before pasting these into your theme’s functions.php file.

Remove Default Portfolio

Removes Enfold theme’s default Portfolio custom post type.


// Removes Enfold Portfolio Post Type

function enfold_remove_portfolio() {
	remove_action('init', 'portfolio_register');
}
add_action('after_setup_theme', 'enfold_remove_portfolio');

Hide Footer Developer Link

Removes Enfold theme’s default footer / copyright link.


// Remove Enfold Footer Link

function enfold_remove_backlink(){
	$kriesi_at_backlink = '';
	return $kriesi_at_backlink;
}
add_filter('kriesi_backlink','enfold_remove_backlink');
0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply