Search code examples
wordpressgenesis

Remove Simple Hook on Genesis Framework


I use Visual Hook plugin to add a hook position to my site - "genesis_after_content_sidebar_wrap". However, when I create a new page (landing page - an empty page), while everything is gone, the new hook is still there.

I went to page_landing.php and want to add remove_action code to remove genesis_after_content_sidebar_wrap. I'm not sure what to add here.

I tried:

remove_action('genesis_after_content_sidebar_wrap');

I doesn't work. Please help. Thanks,


Solution

  • I tried to put a condition to the simple hook plugin configuration page.

    <?php if( !is_page('page-name')) { ?>
    
    //the code goes here
    
    <?php } ?>
    

    And it shows to every pages but not the page-name.