Monochrome Pro Remove Before Footer CTA Widget Conditionally

Add this code to the Monochrome Pro themes functions file.

add_action( 'genesis_before_footer', 'remove_before_footer_cta', 8 );
function remove_before_footer_cta() {

if ( is_page( 'contact' ) ) {
remove_action( 'genesis_before_footer', 'monochrome_before_footer_cta' );

    }

}

This code removes the before footer CTA widget from the contact page only and uses the page slug contact with the is_page conditional tag.

Modify the is_page( 'contact' ) conditional tag to target specific pages.

Resources

remove_action
is_page

Join 5000+ Followers

Get The Latest Free & Premium Tutorials Delivered The Second They’re Published.