Holy Redeemer 2020 - Odessa, TX

Add ACF Hider Code

Assigned to
Kyle Sullivan, Web Development at Diocesan Kyle S.

Comments & Events

Kyle Sullivan, Web Development at Diocesan
Cody Armock, Web Content Specialist at Diocesan Cody , are you talking about hiding the ACF Cog icon?
Cody Armock, Web Content Specialist at Diocesan
Yes
Kyle Sullivan, Web Development at Diocesan
ACF changed the DOM structure for this, so the function for this needs to be changed to the following.
/**
 * Disable ACF cog shortcut.
 *
 * @return void
 */
if( ! function_exists( 'hide_acf_cog' ) ) {
	function hide_acf_cog() {
		echo '<style type="text/css">
			h2.hndle.ui-sortable-handle ~ .handle-actions a.acf-hndle-cog { display: none; visibility: hidden; }
		</style>';
	}
	add_action('admin_head', 'hide_acf_cog');
}
Kyle Sullivan, Web Development at Diocesan
Kyle Sullivan completed this to-do.