Support » Plugin: Genesis Simple Hooks » unhook wp_head simple hook from single page

  • I’d like to unhook the wp_head hook from a single page on my site.

    I tried to alter a few custom functions found on some sites, but I’m not PHP-savvy, and they didn’t work…

    This is what I used, that didn’t work:

    add_action(‘genesis_before_loop’,’remove_head’);

    function remove_head() {
        if (is_page(‘2842’))
            remove_action( ‘genesis_wp_head’ );
        }  

    https://wordpress.org/plugins/genesis-simple-hooks/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘unhook wp_head simple hook from single page’ is closed to new replies.