WordPress.org

Forums

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

  1. dezdesign
    Member
    Posted 1 year 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 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Genesis Simple Hooks
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.