Tag: Header

  • Conditionally remove header widget from Genesis

    Genesis comes with a header widget area built in. Occasionally you may want to remove this for specific pages. The following code snippet in functions.php will do the trick add_action( ‘genesis_meta’, ‘my_remove_hr’); function my_remove_hr() { if ( is_page( ‘privacy-cookies’ ) ) { unregister_sidebar( ‘header-right’ ); } } The if statement will need to be adjusted…