WordPress.org

Ready to get started?Download WordPress

Forums

Genesis Simple Hooks
unhook wp_head simple hook from single page (2 posts)

  1. dezdesign
    Member
    Posted 5 months ago #

    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/

  2. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 5 months ago #

    Sorry, you can't do that with this plugin.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.