• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2785

Original Genesis & WooCommerce Tutorials & 6000+ Guaranteed Code

Snippets

  • Try Premium
  • Log in

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

Monochrome Pro

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags